From b349f53ef593a984e3566c6cb009708f66b53dd7 Mon Sep 17 00:00:00 2001 From: ittipat <39715559+ittipatken@users.noreply.github.com> Date: Thu, 30 Jan 2025 05:19:46 +0700 Subject: [PATCH] perf: migrate to application builder https://angular.dev/tools/cli/build-system-migration --- angular.json | 17 ++++++++--------- tsconfig.json | 1 + 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/angular.json b/angular.json index d5ca501..c991222 100644 --- a/angular.json +++ b/angular.json @@ -10,11 +10,12 @@ "prefix": "app", "architect": { "build": { - "builder": "@angular-devkit/build-angular:browser", + "builder": "@angular-devkit/build-angular:application", "options": { - "outputPath": "www", + "outputPath": { + "base": "www" + }, "index": "src/index.html", - "main": "src/main.ts", "polyfills": [ "zone.js" ], @@ -41,7 +42,8 @@ "styles": false, "hidden": true, "vendor": true - } + }, + "browser": "src/main.ts" }, "configurations": { "production": { @@ -64,8 +66,7 @@ "maximumError": "4kb" } ], - "serviceWorker": true, - "ngswConfigPath": "ngsw-config.json" + "serviceWorker": "ngsw-config.json" }, "ci": { "budgets": [ @@ -77,9 +78,7 @@ "progress": false }, "development": { - "buildOptimizer": false, - "optimization": false, - "vendorChunk": true, + "optimization": false, "extractLicenses": false, "sourceMap": true, "namedChunks": true diff --git a/tsconfig.json b/tsconfig.json index 9b92bb8..5134ad3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,6 +3,7 @@ "compilerOptions": { "baseUrl": "./", "outDir": "./dist/out-tsc", + "esModuleInterop": true, "sourceMap": true, "declaration": false, "module": "esnext",