Skip to content

Commit c803e4b

Browse files
committed
impliment hack fix due to
angular/angular-cli#11439
1 parent 25fc9ce commit c803e4b

File tree

3 files changed

+303
-9
lines changed

3 files changed

+303
-9
lines changed

ui/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"build": "ng build",
88
"test": "ng test",
99
"lint": "ng lint",
10-
"e2e": "ng e2e"
10+
"e2e": "ng e2e",
11+
"prepare": "patch-package"
1112
},
1213
"private": true,
1314
"dependencies": {
@@ -32,7 +33,9 @@
3233
"marked": "^0.6.0",
3334
"ng2-truncate": "^1.3.17",
3435
"ngx-toastr": "^9.1.1",
36+
"patch-package": "^6.0.5",
3537
"popper.js": "^1.14.7",
38+
"postinstall-prepare": "^1.0.1",
3639
"protobufjs": "^6.8.8",
3740
"quill": "^1.3.6",
3841
"quill-blot-formatter": "^1.0.5",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/common.js b/node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/common.js
2+
index 99903a9..2df2337 100644
3+
--- a/node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/common.js
4+
+++ b/node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/common.js
5+
@@ -187,7 +187,7 @@ function getCommonConfig(wco) {
6+
ngDevMode: false,
7+
},
8+
} : {
9+
- pure_getters: buildOptions.buildOptimizer,
10+
+ pure_getters: false,
11+
// PURE comments work best with 3 passes.
12+
// See https://github.com/webpack/webpack/issues/2899#issuecomment-317425926.
13+
passes: buildOptions.buildOptimizer ? 3 : 1,

0 commit comments

Comments
 (0)