Don't wrap goog.module in IJS when "shouldWrapModule" flag is false.
That allows other tools (e.g. Kythe) to get cleaner unwrapped JS when they run generate IJS versions of input files.
Tested:
presubmit
@@ -209,7 +209,9 @@ public final class DefaultPassConfig extends PassConfig {
checks.add(closureGoogScopeAliasesForIjs);
checks.add(closureRewriteClass);
checks.add(generateIjs);
+ if (options.wrapGoogModulesForWhitespaceOnly) {
checks.add(whitespaceWrapGoogModules);
+ }
checks.add(removeSyntheticScript);
return checks;
}
