Skip to content

Commit

Permalink
Fixing angular package building with zone.js 0.14.0. See https://stac…
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckinghamAJ committed May 21, 2024
1 parent c0139fd commit 278d79c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"index": "src/index.html",
"main": "src/main.ts",
"tsConfig": "src/tsconfig.app.json",
"polyfills": "src/polyfills.ts",
"polyfills": ["zone.js", "zone.js/testing"],
"assets": [
"src/assets",
"src/favicon.ico",
Expand Down
5 changes: 3 additions & 2 deletions src/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ import 'core-js/es/reflect';
* Zone JS is required by Angular itself.
*/
(window as any).__Zone_enable_cross_context_check = true;
import 'zone.js/dist/zone'; // Included with Angular CLI.

// Included with Angular CLI.
import 'zone.js';
import 'zone.js/testing';


/***************************************************************************************************
Expand Down

0 comments on commit 278d79c

Please sign in to comment.