Turn on ES8_MODULES for CollapseProperties and AggressiveInlineAliases.
@@ -1524,6 +1524,11 @@ public final class DefaultPassConfig extends PassConfig {
protected CompilerPass create(AbstractCompiler compiler) {
return new AggressiveInlineAliases(compiler);
}
+
+ @Override
+ protected FeatureSet featureSet() {
+ return ES8_MODULES;
+ }
};
private final PassFactory setFeatureSet(final FeatureSet featureSet) {
@@ -2414,6 +2419,11 @@ public final class DefaultPassConfig extends PassConfig {
protected CompilerPass create(AbstractCompiler compiler) {
return new CollapseProperties(compiler);
}
+
+ @Override
+ protected FeatureSet featureSet() {
+ return ES8_MODULES;
+ }
};
/** Rewrite properties as variables. */
