]> juplo.de Git - demos/kafka/chat/commitdiff
@angular/cli migration - use-application-builder
authorKai Moritz <kai@juplo.de>
Wed, 17 Sep 2025 20:00:55 +0000 (20:00 +0000)
committerKai Moritz <kai@juplo.de>
Fri, 19 Sep 2025 11:00:59 +0000 (13:00 +0200)
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
tsconfig.json

index 2e3c4b18bc5059d2c22b192f31395b5de5a6c76f..52095772026c39e5cd689b358b92658675266a3a 100644 (file)
       "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
index 07606cd31c4d6a56b5f50aad0956bfe022982b0a..a0b014abb2302f8008978a8efeb42e69f5ae526a 100644 (file)
@@ -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,