Skip to content

Commit 88d53ea

Browse files
committed
feat(build): migrate to esbuild application builder
Switch from webpack-based browser builder to esbuild-based application builder. Fix markdown-it default imports, enable esModuleInterop, update polyfills to array format, remove webpack-only options (buildOptimizer, vendorChunk), remove polyfills.ts, and flatten output path to dist/dsomm/.
1 parent 3e9e6ae commit 88d53ea

11 files changed

Lines changed: 22 additions & 896 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)