Skip to content

Commit 3e2e701

Browse files
authored
Refactor: Remove zone.js package fully from main site (#195)
Description: Removed the `zone.js` library from the web application. This should reduce bundle size and improve the speed of the web application. The speed will not be a noticeable change. Future issues: There might be some bugs introduce by this change, make sure this is tested thoroughly.
1 parent 149c8f5 commit 3e2e701

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

angular.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"outputPath": "dist/csss-ng-frontend",
2222
"index": "src/index.html",
2323
"browser": "src/main.ts",
24-
"polyfills": ["zone.js"],
2524
"tsConfig": "tsconfig.app.json",
2625
"inlineStyleLanguage": "scss",
2726
"assets": [
@@ -82,7 +81,6 @@
8281
"test": {
8382
"builder": "@angular/build:karma",
8483
"options": {
85-
"polyfills": ["zone.js", "zone.js/testing"],
8684
"tsConfig": "tsconfig.spec.json",
8785
"inlineStyleLanguage": "scss",
8886
"assets": [

src/app/app.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { ApplicationConfig } from '@angular/core';
1+
import { ApplicationConfig, provideZonelessChangeDetection } from '@angular/core';
22
import { provideRouter } from '@angular/router';
33

44
import { routes } from './app.routes';
55

66
export const appConfig: ApplicationConfig = {
7-
providers: [provideRouter(routes)]
7+
providers: [provideZonelessChangeDetection(), provideRouter(routes)]
88
};

0 commit comments

Comments
 (0)