Add ES8_MODULES feature set to coalesceVariableNames pass
@@ -2699,6 +2699,11 @@ public final class DefaultPassConfig extends PassConfig {
protected CompilerPass create(AbstractCompiler compiler) {
return new CoalesceVariableNames(compiler, options.generatePseudoNames);
}
+
+ @Override
+ protected FeatureSet featureSet() {
+ return ES8_MODULES;
+ }
};
/** Some simple, local collapses (e.g., {@code var x; var y;} becomes {@code var x,y;}. */
