diff --git a/admin/angular.json b/admin/angular.json index 7a0a47e4..3b2f41bf 100644 --- a/admin/angular.json +++ b/admin/angular.json @@ -18,6 +18,9 @@ "build": { "builder": "@angular-devkit/build-angular:browser", "options": { + "allowedCommonJsDependencies": [ + "leaflet" + ], "baseHref": "/admin/", "outputPath": "dist/admin", "index": "src/index.html", diff --git a/admin/tsconfig.json b/admin/tsconfig.json index 448a569a..de063ce0 100644 --- a/admin/tsconfig.json +++ b/admin/tsconfig.json @@ -7,7 +7,10 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "importHelpers": true, + "esModuleInterop": true, + "resolveJsonModule": true, "target": "ES2022", + "module": "esnext", "lib": [ "es2017", "dom"