Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
"css-minimizer-webpack-plugin": "3.0.2",
"debug": "^4.1.1",
"enhanced-resolve": "5.8.2",
"esbuild": "0.12.9",
"esbuild": "0.12.11",
"eslint": "7.29.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-header": "3.1.1",
Expand Down Expand Up @@ -220,7 +220,7 @@
"symbol-observable": "4.0.0",
"tar": "^6.0.0",
"temp": "^0.9.0",
"terser": "5.7.0",
"terser": "5.7.1",
"terser-webpack-plugin": "5.1.4",
"text-table": "0.2.0",
"through2": "^4.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/angular_devkit/build_angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"critters": "0.0.10",
"css-loader": "5.2.6",
"css-minimizer-webpack-plugin": "3.0.2",
"esbuild": "0.12.9",
"esbuild": "0.12.11",
"find-cache-dir": "3.3.1",
"glob": "7.1.7",
"https-proxy-agent": "5.0.0",
Expand Down Expand Up @@ -66,7 +66,7 @@
"style-loader": "3.0.0",
"stylus": "0.54.8",
"stylus-loader": "6.1.0",
"terser": "5.7.0",
"terser": "5.7.1",
"terser-webpack-plugin": "5.1.4",
"text-table": "0.2.0",
"tree-kill": "1.2.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@ export class JavaScriptOptimizerPlugin {
const workerPool = new Piscina({
filename: workerPath,
maxThreads: MAX_OPTIMIZE_WORKERS,
env: {
...process.env,
// Workaround for `TypeError [Error]: Cannot read property 'workerPort' of undefined`
// See: https://github.com/evanw/esbuild/commit/aa8b9ce8d462378f0f06ac52e83f6c32332dde38
ESBUILD_WORKER_THREADS: '0',
},
});

// Enqueue script optimization tasks and update compilation assets as the tasks complete
Expand Down
19 changes: 14 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4707,10 +4707,10 @@ es6-weak-map@^2.0.3:
es6-iterator "^2.0.3"
es6-symbol "^3.1.1"

esbuild@0.12.9:
version "0.12.9"
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.12.9.tgz#bed4e7087c286cd81d975631f77d47feb1660070"
integrity sha512-MWRhAbMOJ9RJygCrt778rz/qNYgA4ZVj6aXnNPxFjs7PmIpb0fuB9Gmg5uWrr6n++XKwwm/RmSz6RR5JL2Ocsw==
esbuild@0.12.11:
version "0.12.11"
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.12.11.tgz#ab24f78cabf481e7dc747e7db15f9c5091beaa14"
integrity sha512-h83GwI6lYOrnSv5hSY2i2XZ191v3haj2IGDzwrkfWHhuO/kVMX3RYjhwRNG9E5VSxVLPaUjTVwrv8HWLvhk2nQ==

escalade@^3.1.1:
version "3.1.1"
Expand Down Expand Up @@ -11218,7 +11218,16 @@ terser-webpack-plugin@5.1.4, terser-webpack-plugin@^5.1.3:
source-map "^0.6.1"
terser "^5.7.0"

terser@5.7.0, terser@^5.7.0:
terser@5.7.1:
version "5.7.1"
resolved "https://registry.yarnpkg.com/terser/-/terser-5.7.1.tgz#2dc7a61009b66bb638305cb2a824763b116bf784"
integrity sha512-b3e+d5JbHAe/JSjwsC3Zn55wsBIM7AsHLjKxT31kGCldgbpFePaFo+PiddtO6uwRZWRw7sPXmAN8dTW61xmnSg==
dependencies:
commander "^2.20.0"
source-map "~0.7.2"
source-map-support "~0.5.19"

terser@^5.7.0:
version "5.7.0"
resolved "https://registry.yarnpkg.com/terser/-/terser-5.7.0.tgz#a761eeec206bc87b605ab13029876ead938ae693"
integrity sha512-HP5/9hp2UaZt5fYkuhNBR8YyRcT8juw8+uFbAme53iN9hblvKnLUTKkmwJG6ocWpIKf8UK4DoeWG4ty0J6S6/g==
Expand Down