Enable CheckClosureImports on goog.provide files
@@ -60,6 +60,7 @@ import com.google.javascript.jscomp.lint.CheckRequiresSorted;
import com.google.javascript.jscomp.lint.CheckUnusedLabels;
import com.google.javascript.jscomp.lint.CheckUselessBlocks;
import com.google.javascript.jscomp.modules.ModuleMapCreator;
+import com.google.javascript.jscomp.modules.ModuleMetadataMap.ModuleType;
import com.google.javascript.jscomp.parsing.ParserRunner;
import com.google.javascript.jscomp.parsing.parser.FeatureSet;
import com.google.javascript.rhino.IR;
@@ -1573,7 +1574,7 @@ public final class DefaultPassConfig extends PassConfig {
protected HotSwapCompilerPass create(AbstractCompiler compiler) {
// TODO(johnplaisted): Expand the Set of modules to check.
return new CheckClosureImports(
- compiler, compiler.getModuleMetadataMap(), ImmutableSet.of());
+ compiler, compiler.getModuleMetadataMap(), ImmutableSet.of(ModuleType.GOOG_PROVIDE));
}
@Override
