Include modules that are referenced via export from as dependencies.
@@ -359,6 +359,10 @@ public class JsfileParser implements EntryPoint {
info.importedModules.add(moduleSpecifier.getString());
} else if (node.isExport()) {
info.loadFlags.add(JsArray.of("module", "es6"));
+ // export from
+ if (node.hasChildren() && node.getLastChild().isString()) {
+ info.importedModules.add(node.getLastChild().getString());
+ }
}
}
}
