File tree
Expand file treeCollapse file tree1 file changed
+2
-2
lines changed packages/schematics/angular/application
Expand file treeCollapse file tree1 file changed
+2
-2
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -258,7 +258,7 @@ function addAppToWorkspaceFile(
|
258 | 258 | options: {
|
259 | 259 | index: `${sourceRoot}/index.html`,
|
260 | 260 | browser: `${sourceRoot}/main.ts`,
|
261 |
| -polyfills: options.zoneless ? [] : ['zone.js'], |
| 261 | +polyfills: options.zoneless ? undefined : ['zone.js'], |
262 | 262 | tsConfig: `${projectRoot}tsconfig.app.json`,
|
263 | 263 | inlineStyleLanguage,
|
264 | 264 | assets: [{ 'glob': '**/*', 'input': `${projectRoot}public` }],
|
@@ -297,7 +297,7 @@ function addAppToWorkspaceFile(
|
297 | 297 | : {
|
298 | 298 | builder: Builders.BuildKarma,
|
299 | 299 | options: {
|
300 |
| -polyfills: options.zoneless ? [] : ['zone.js', 'zone.js/testing'], |
| 300 | +polyfills: options.zoneless ? undefined : ['zone.js', 'zone.js/testing'], |
301 | 301 | tsConfig: `${projectRoot}tsconfig.spec.json`,
|
302 | 302 | inlineStyleLanguage,
|
303 | 303 | assets: [{ 'glob': '**/*', 'input': `${projectRoot}public` }],
|
|
You can’t perform that action at this time.
0 commit comments