move remapAssignments to init method in the module formatter - fixes #1124
This commit is contained in:
parent
ee14770a5c
commit
6353abfd1b
@ -93,7 +93,9 @@ export default class DefaultFormatter {
|
||||
|
||||
this.getLocalExports();
|
||||
this.getLocalImports();
|
||||
}
|
||||
|
||||
init() {
|
||||
this.remapAssignments();
|
||||
}
|
||||
|
||||
|
||||
@ -15,6 +15,8 @@ export default class CommonJSFormatter extends DefaultFormatter {
|
||||
if (this.file.isLoose("es6.modules")) templateName += "-loose";
|
||||
file.ast.program.body.unshift(util.template(templateName, true));
|
||||
}
|
||||
|
||||
DefaultFormatter.prototype.init.call(this);
|
||||
};
|
||||
|
||||
importSpecifier(specifier, node, nodes) {
|
||||
|
||||
@ -94,7 +94,9 @@ export default class SystemFormatter extends AMDFormatter {
|
||||
DefaultFormatter.apply(this, arguments);
|
||||
}
|
||||
|
||||
init() {}
|
||||
init() {
|
||||
DefaultFormatter.prototype.init.call(this);
|
||||
}
|
||||
|
||||
_addImportSource(node, exportNode) {
|
||||
node._importSource = exportNode.source && exportNode.source.value;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user