Skip to content

Commit bb38f85

Browse files
alan-agius4filipesilva
authored andcommitted
feat(@schematics/angular): use new zone.js entry-points
1 parent 1d22ac6 commit bb38f85

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

packages/schematics/angular/application/files/src/environments/environment.ts.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ export const environment = {
1313
* This import should be commented out in production mode because it will have a negative impact
1414
* on performance if an error is thrown.
1515
*/
16-
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
16+
// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.

packages/schematics/angular/application/files/src/polyfills.ts.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
/***************************************************************************************************
5858
* Zone JS is required by default for Angular itself.
5959
*/
60-
import 'zone.js/dist/zone'; // Included with Angular CLI.
60+
import 'zone.js'; // Included with Angular CLI.
6161

6262

6363
/***************************************************************************************************

packages/schematics/angular/application/files/src/test.ts.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
22

3-
import 'zone.js/dist/zone-testing';
3+
import 'zone.js/testing';
44
import { getTestBed } from '@angular/core/testing';
55
import {
66
BrowserDynamicTestingModule,

packages/schematics/angular/library/files/src/test.ts.template

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
22

3-
import 'zone.js/dist/zone';
4-
import 'zone.js/dist/zone-testing';
3+
import 'zone.js';
4+
import 'zone.js/testing';
55
import { getTestBed } from '@angular/core/testing';
66
import {
77
BrowserDynamicTestingModule,

0 commit comments

Comments
 (0)