create a new declaration for non-exported variables that follow an exported one (#2165)

pull/2172/head
John Chesley 6 years ago
parent fc19749673
commit d6c160aade

@ -839,6 +839,14 @@ export default class Component {
current_group.declarators.push(declarator);
}
if (next) {
const next_variable = component.var_lookup.get(next.id.name)
if (next_variable && !next_variable.export_name) {
current_group = null
code.overwrite(declarator.end, next.start, ` ${node.kind} `);
}
}
} else {
current_group = null;

Loading…
Cancel
Save