mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-19 04:26:01 +08:00
When using the `application` or `browser-esbuild` builders, a parallel TS/NG compilation will be used by default via a Node.js Worker. However, when used inside a Web Container, the build will fail to initialize the compilation instance due to what appears to be a defect within Web containers involving the transfer/serialization of a MessageChannel's MessagePort objects. To avoid this problem, the parallel compilation is disabled by default when the build system detects it is being executed from within a Web Container. A parallel compilation can still be forced by using the `NG_BUILD_PARALLEL_TS=1` environment variable.