Skip to content

Commit b68978a

Browse files
authored
Merge pull request #564 from sawankshrma/new-angular-builder
Migrate to new angular builder (esbuild)
2 parents db5b6a3 + f923118 commit b68978a

12 files changed

Lines changed: 24 additions & 898 deletions

File tree

angular.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,18 @@
1515
"prefix": "app",
1616
"architect": {
1717
"build": {
18-
"builder": "@angular-devkit/build-angular:browser",
18+
"builder": "@angular-devkit/build-angular:application",
1919
"options": {
20-
"outputPath": "dist/dsomm",
20+
"outputPath": {
21+
"base": "dist/dsomm",
22+
"browser": ""
23+
},
2124
"index": "src/index.html",
22-
"main": "src/main.ts",
23-
"polyfills": "src/polyfills.ts",
25+
"browser": "src/main.ts",
26+
"polyfills": [
27+
"@angular/localize/init",
28+
"zone.js"
29+
],
2430
"tsConfig": "tsconfig.app.json",
2531
"allowedCommonJsDependencies": [
2632
"yamljs"
@@ -58,9 +64,7 @@
5864
"outputHashing": "all"
5965
},
6066
"development": {
61-
"buildOptimizer": false,
6267
"optimization": false,
63-
"vendorChunk": true,
6468
"extractLicenses": false,
6569
"sourceMap": true,
6670
"namedChunks": true
@@ -90,7 +94,7 @@
9094
"builder": "@angular-devkit/build-angular:karma",
9195
"options": {
9296
"main": "src/test.ts",
93-
"polyfills": "src/polyfills.ts",
97+
"polyfills": ["zone.js", "zone.js/testing"],
9498
"tsConfig": "tsconfig.spec.json",
9599
"karmaConfig": "karma.conf.js",
96100
"assets": [

0 commit comments

Comments
 (0)