From 483ba643587868c7cb8b79e8f790bba30424aeaa Mon Sep 17 00:00:00 2001 From: kashw2 Date: Sat, 14 Sep 2024 17:11:31 +1000 Subject: [PATCH] fix(panel): migrate from 17 to 18 --- panel/angular.json | 21 ++++++++++----------- panel/tsconfig.json | 3 +-- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/panel/angular.json b/panel/angular.json index e68ab301d..e4d4688d1 100644 --- a/panel/angular.json +++ b/panel/angular.json @@ -15,13 +15,16 @@ "prefix": "app", "architect": { "build": { - "builder": "@angular-devkit/build-angular:browser-esbuild", + "builder": "@angular-devkit/build-angular:application", "options": { "preserveSymlinks": true, - "outputPath": "dist/panel", + "outputPath": { + "base": "dist/panel" + }, "index": "src/index.html", - "main": "src/main.ts", - "polyfills": "src/polyfills.ts", + "polyfills": [ + "src/polyfills.ts" + ], "tsConfig": "tsconfig.app.json", "assets": [ "src/favicon.ico", @@ -35,12 +38,11 @@ "../node_modules/easy-pie-chart/dist/easypiechart.js", "../node_modules/screenfull/dist/screenfull.js" ], - "vendorChunk": true, "extractLicenses": false, - "buildOptimizer": false, "sourceMap": true, "optimization": false, - "namedChunks": true + "namedChunks": true, + "browser": "src/main.ts" }, "configurations": { "production": { @@ -54,16 +56,13 @@ "outputHashing": "all", "sourceMap": false, "namedChunks": false, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true + "extractLicenses": true } } }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { - "disableHostCheck": true, "buildTarget": "panel:build" }, "configurations": { diff --git a/panel/tsconfig.json b/panel/tsconfig.json index a7510c40d..86d18d01e 100644 --- a/panel/tsconfig.json +++ b/panel/tsconfig.json @@ -3,13 +3,12 @@ { "compileOnSave": false, "compilerOptions": { - "allowSyntheticDefaultImports": true, "strictNullChecks": true, "baseUrl": "./", "outDir": "./dist/out-tsc", + "esModuleInterop": true, "sourceMap": true, "declaration": false, - "downlevelIteration": true, "experimentalDecorators": true, "moduleResolution": "node", "importHelpers": true,