Correctly check for export from which has two children. Other exports have one child.
This was picking up "export default 'asdf'"; as an export from asdf.
@@ -369,7 +369,7 @@ public class JsfileParser implements EntryPoint {
} else if (node.isExport()) {
info.loadFlags.add(JsArray.of("module", "es6"));
// export from
- if (node.hasChildren() && node.getLastChild().isString()) {
+ if (node.hasTwoChildren() && node.getLastChild().isString()) {
info.importedModules.add(node.getLastChild().getString());
}
}
