Skip to content

Commit a52769f

Browse files
Switch to zoneless (#269)
Co-authored-by: Grzegorz Krajniak <[email protected]>
1 parent 0e34ddc commit a52769f

File tree

5 files changed

+23
-32
lines changed

5 files changed

+23
-32
lines changed

frontend/angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"base": "dist/frontend"
2222
},
2323
"index": "src/index.html",
24-
"polyfills": ["zone.js", "@angular/localize/init"],
24+
"polyfills": ["@angular/localize/init"],
2525
"tsConfig": "tsconfig.app.json",
2626
"inlineStyleLanguage": "scss",
2727
"assets": [

frontend/package-lock.json

Lines changed: 11 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,14 @@
3333
"@luigi-project/client": "2.25.1",
3434
"@luigi-project/core": "2.25.1",
3535
"@luigi-project/plugin-auth-oauth2": "2.25.1",
36-
"@openmfp/portal-ui-lib": "0.183.14",
37-
"@platform-mesh/portal-ui-lib": "0.20.1",
36+
"@openmfp/portal-ui-lib": "0.184.3",
37+
"@platform-mesh/portal-ui-lib": "0.21.2",
3838
"@ui5/webcomponents-ngx": "0.5.8",
3939
"jmespath": "0.16.0",
4040
"jwt-decode": "4.0.0",
4141
"lodash": "4.17.21",
4242
"rxjs": "7.8.2",
43-
"tslib": "2.8.1",
44-
"zone.js": "0.15.1"
43+
"tslib": "2.8.1"
4544
},
4645
"devDependencies": {
4746
"@angular-builders/jest": "20.0.0",

frontend/src/main.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { routes } from './app/app.routes';
22
import { PMStaticSettingsConfigService } from './app/services/pm-static-settings-config.service';
3+
import { provideZonelessChangeDetection } from '@angular/core';
34
import { bootstrapApplication } from '@angular/platform-browser';
45
import { provideRouter } from '@angular/router';
56
import {
@@ -30,5 +31,9 @@ const portalOptions: PortalOptions = {
3031
};
3132

3233
bootstrapApplication(PortalComponent, {
33-
providers: [provideRouter(routes), providePortal(portalOptions)],
34+
providers: [
35+
provideRouter(routes),
36+
providePortal(portalOptions),
37+
provideZonelessChangeDetection(),
38+
],
3439
}).catch((err) => console.error(err));

frontend/tsconfig.app.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
"outDir": "./out-tsc/app",
66
"types": []
77
},
8-
"files": [
9-
"src/main.ts"
10-
],
11-
"include": [
12-
"src/**/*.d.ts"
13-
]
8+
"files": ["src/main.ts"],
9+
"include": ["src/**/*.d.ts"]
1410
}

0 commit comments

Comments
 (0)