diff --git a/tools/gulp/tasks/unit-test.ts b/tools/gulp/tasks/unit-test.ts index fd4b59d3a7aa..8793f2daca4b 100644 --- a/tools/gulp/tasks/unit-test.ts +++ b/tools/gulp/tasks/unit-test.ts @@ -45,7 +45,7 @@ task(':test:build-system-config', () => { const configOutputPath = join(buildConfig.outputDir, 'karma-system-config.js'); shelljs.cd(buildConfig.projectDir); const bazelGenfilesDir = shelljs.exec('yarn -s bazel info bazel-genfiles').stdout.trim(); - shelljs.exec('yarn -s bazel build //test:system-config.js --config=view-engine'); + shelljs.exec('yarn -s bazel build //test:system-config.js'); shelljs.cp(join(bazelGenfilesDir, 'test/system-config.js'), configOutputPath); shelljs.chmod('u+w', configOutputPath); }); diff --git a/tools/system-config-tmpl.js b/tools/system-config-tmpl.js index 86a517fda822..4a5eb7d950f1 100644 --- a/tools/system-config-tmpl.js +++ b/tools/system-config-tmpl.js @@ -121,9 +121,10 @@ function setupFrameworkPackages() { var entryPointName = segments.length ? moduleName + '/' + segments.join('/') : moduleName; var bundlePath = 'bundles/' + bundleName; // When running with Ivy, we need to load the ngcc processed UMD bundles. - // These are stored in the "__ivy_ngcc_" folder that has been generated - // since we run ngcc with "--create-ivy-entry-points". - if (isRunningWithIvy) { + // These are stored in the `__ivy_ngcc_` folder that has been generated + // since we run ngcc with `--create-ivy-entry-points`. Filter out the compiler + // package because it won't be processed by ngcc. + if (isRunningWithIvy && entryPointName !== '@angular/compiler') { bundlePath = '__ivy_ngcc__/' + bundlePath; } packagesConfig[entryPointName] = {