diff --git a/angular.json b/angular.json index ecf00b9c..7a2e45c6 100644 --- a/angular.json +++ b/angular.json @@ -14,7 +14,7 @@ }, "architect": { "build": { - "builder": "@angular-devkit/build-angular:browser", + "builder": "@angular-devkit/build-angular:browser-esbuild", "options": { "sourceMap": true, "allowedCommonJsDependencies": ["moment", "path-normalize"], @@ -211,7 +211,7 @@ "prefix": "app", "architect": { "build": { - "builder": "@angular-devkit/build-angular:browser", + "builder": "@angular-devkit/build-angular:browser-esbuild", "options": { "outputPath": "dist/scenes", "index": "scenes/src/index.html", diff --git a/src/app/shared/normalize-path.ts b/src/app/shared/normalize-path.ts index 99594fff..12d7ff90 100644 --- a/src/app/shared/normalize-path.ts +++ b/src/app/shared/normalize-path.ts @@ -1,4 +1,4 @@ -import * as normalize from 'path-normalize'; +import normalize from 'path-normalize'; /** * Normalizes the given path by: diff --git a/tsconfig.json b/tsconfig.json index 203f6057..92a964f4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,6 +8,7 @@ "declaration": false, "downlevelIteration": true, "experimentalDecorators": true, + "esModuleInterop": true, "module": "es2020", "moduleResolution": "node", "importHelpers": true,