Skip to content

Commit 2152287

Browse files
clydinalan-agius4
authored andcommitted
Revert "fix(@angular-devkit/build-angular): disable parallel TS/NG compilation inside WebContainers"
This reverts commit 421c175. (cherry picked from commit 3686768)
1 parent 0bd9a81 commit 2152287

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/angular_devkit/build_angular/src/utils/environment-options.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,8 @@ export const allowMinify = debugOptimize.minify;
7878
const maxWorkersVariable = process.env['NG_BUILD_MAX_WORKERS'];
7979
export const maxWorkers = isPresent(maxWorkersVariable) ? +maxWorkersVariable : 4;
8080

81-
// Default to enabled unless inside a Web Container which currently fails when transferring MessagePort objects
8281
const parallelTsVariable = process.env['NG_BUILD_PARALLEL_TS'];
83-
export const useParallelTs = isPresent(parallelTsVariable)
84-
? !isDisabled(parallelTsVariable)
85-
: !process.versions.webcontainer;
82+
export const useParallelTs = !isPresent(parallelTsVariable) || !isDisabled(parallelTsVariable);
8683

8784
const legacySassVariable = process.env['NG_BUILD_LEGACY_SASS'];
8885
export const useLegacySass: boolean = (() => {

0 commit comments

Comments
 (0)