Turn on ExtractPrototypeMemberDeclarations for ES6-out builds.
It doesn't currently work on ES6 modules, but that's okay because it runs after module transpilation.
@@ -2896,6 +2896,11 @@ public final class DefaultPassConfig extends PassConfig {
return new ExtractPrototypeMemberDeclarations(compiler, pattern);
}
+
+ @Override
+ protected FeatureSet featureSet() {
+ return ES8;
+ }
};
/** Rewrites common function definitions to be more compact. */
