diff --git a/packages/angular/build/src/tools/esbuild/javascript-transformer.ts b/packages/angular/build/src/tools/esbuild/javascript-transformer.ts index 2e323bd26f6e..026163bca642 100644 --- a/packages/angular/build/src/tools/esbuild/javascript-transformer.ts +++ b/packages/angular/build/src/tools/esbuild/javascript-transformer.ts @@ -58,6 +58,8 @@ export class JavaScriptTransformer { this.#workerPool ??= new WorkerPool({ filename: require.resolve('./javascript-transformer-worker'), maxThreads: this.maxThreads, + // Prevent passing `--import` (loader-hooks) from parent to child worker. + execArgv: [], }); return this.#workerPool;