Skip to content

Commit 94e7f3b

Browse files
JiaLiPassionhansl
authored andcommitted
feat(@schematics/angular): add zone-error import in polyfill (#414)
1 parent 72c96d4 commit 94e7f3b

File tree

1 file changed

+8
-0
lines changed
  • packages/schematics/angular/application/files/__sourcedir__/environments

1 file changed

+8
-0
lines changed

packages/schematics/angular/application/files/__sourcedir__/environments/environment.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,11 @@
66
export const environment = {
77
production: false
88
};
9+
10+
/*
11+
* In development mode, to ignore zone related error stack frames such as
12+
* `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can
13+
* import the following file, but please comment it out in production mode
14+
* because it will have performance impact when throw error
15+
*/
16+
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.

0 commit comments

Comments
 (0)