We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f69e4f3 commit 47a1cccCopy full SHA for 47a1ccc
packages/angular_devkit/build_angular/src/webpack/plugins/javascript-optimizer-plugin.ts
@@ -143,6 +143,12 @@ export class JavaScriptOptimizerPlugin {
143
const workerPool = new Piscina({
144
filename: workerPath,
145
maxThreads: MAX_OPTIMIZE_WORKERS,
146
+ env: {
147
+ ...process.env,
148
+ // Workaround for `TypeError [Error]: Cannot read property 'workerPort' of undefined`
149
+ // See: https://github.com/evanw/esbuild/commit/aa8b9ce8d462378f0f06ac52e83f6c32332dde38
150
+ ESBUILD_WORKER_THREADS: '0',
151
+ },
152
});
153
154
// Enqueue script optimization tasks and update compilation assets as the tasks complete
0 commit comments