From 93b303fbbe1d635842ad3e2d59275cf6bee08600 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Wed, 17 Sep 2025 20:00:55 +0000 Subject: [PATCH] @angular/cli migration - use-application-builder Migrate application projects to the new build system. Application projects that are using the '@angular-devkit/build-angular' package's 'browser' and/or 'browser-esbuild' builders will be migrated to use the new 'application' builder. You can read more about this, including known issues and limitations, here: https://angular.dev/tools/cli/build-system-migration --- angular.json | 12 ++++++------ tsconfig.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/angular.json b/angular.json index 2e3c4b18..52095772 100644 --- a/angular.json +++ b/angular.json @@ -15,11 +15,12 @@ "prefix": "app", "architect": { "build": { - "builder": "@angular-devkit/build-angular:browser", + "builder": "@angular-devkit/build-angular:application", "options": { - "outputPath": "dist/chatroom-frontend", + "outputPath": { + "base": "dist/chatroom-frontend" + }, "index": "src/index.html", - "main": "src/main.ts", "polyfills": [ "zone.js" ], @@ -32,7 +33,8 @@ "styles": [ "src/styles.less" ], - "scripts": [] + "scripts": [], + "browser": "src/main.ts" }, "configurations": { "production": { @@ -51,9 +53,7 @@ "outputHashing": "all" }, "development": { - "buildOptimizer": false, "optimization": false, - "vendorChunk": true, "extractLicenses": false, "sourceMap": true, "namedChunks": true diff --git a/tsconfig.json b/tsconfig.json index 07606cd3..a0b014ab 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,6 +5,7 @@ "baseUrl": "./", "outDir": "./dist/out-tsc", "forceConsistentCasingInFileNames": true, + "esModuleInterop": true, "strict": true, "strictNullChecks": true, "noImplicitOverride": true, @@ -13,7 +14,6 @@ "noFallthroughCasesInSwitch": true, "sourceMap": true, "declaration": false, - "downlevelIteration": true, "experimentalDecorators": true, "moduleResolution": "node", "importHelpers": true, -- 2.39.5