Add ModuleLoader.LOAD_WARNING to MISSING_SOURCES_WARNINGS.
When checking partial programs it's expected that ES module imports of files outside that partial program would fail to resolve.
@@ -451,7 +451,9 @@ public class DiagnosticGroups {
DUPLICATE_VARS,
// caused by a define depending on another define that's missing
DiagnosticGroup.forType(ProcessDefines.INVALID_DEFINE_INIT_ERROR),
- DiagnosticGroup.forType(Es6ExternsCheck.MISSING_ES6_EXTERNS));
+ DiagnosticGroup.forType(Es6ExternsCheck.MISSING_ES6_EXTERNS),
+ // ES Module imports of files not reachable from this partial program.
+ DiagnosticGroup.forType(ModuleLoader.LOAD_WARNING));
public static final DiagnosticGroup STRICT_MISSING_REQUIRE =
DiagnosticGroups.registerGroup(
