From e4124e1f46b2a9493518e16c165bad64f4ca66ba Mon Sep 17 00:00:00 2001 From: Chintan Kavathia Date: Mon, 18 Nov 2024 11:50:54 +0530 Subject: [PATCH] build: switch to esbuild --- angular.json | 17 ++++++++--------- tsconfig.json | 2 -- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/angular.json b/angular.json index e95e5f1de..42bcc16f3 100644 --- a/angular.json +++ b/angular.json @@ -18,22 +18,23 @@ "prefix": "app", "architect": { "build": { - "builder": "@angular-devkit/build-angular:browser", + "builder": "@angular-devkit/build-angular:application", "options": { - "outputPath": "dist/ngx-datatable", + "outputPath": { + "base": "dist/ngx-datatable", + "browser": "" + }, "index": "src/index.html", - "main": "src/main.ts", - "polyfills": "src/polyfills.ts", + "polyfills": ["src/polyfills.ts"], "tsConfig": "tsconfig.app.json", "assets": ["src/favicon.ico", "src/assets"], "styles": ["src/styles.scss"], "scripts": [], - "vendorChunk": true, "extractLicenses": false, - "buildOptimizer": false, "sourceMap": true, "optimization": false, - "namedChunks": true + "namedChunks": true, + "browser": "src/main.ts" }, "configurations": { "production": { @@ -48,8 +49,6 @@ "sourceMap": false, "namedChunks": false, "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true, "budgets": [ { "type": "initial", diff --git a/tsconfig.json b/tsconfig.json index 22f60740f..4e0583194 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,6 @@ "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, - "downlevelIteration": true, "experimentalDecorators": true, "module": "es2022", "moduleResolution": "node", @@ -16,7 +15,6 @@ "resolveJsonModule": true, "esModuleInterop": true, "noUnusedLocals": true, - "allowSyntheticDefaultImports": true, "paths": { "@siemens/ngx-datatable": ["dist/ngx-datatable"], "@siemens/ngx-datatable/*": ["dist/ngx-datatable/*"]