@angular-devkit/build-angular v12.0.1 uses too much memory compared to v12.0.0 #20883
Closed
14 tasks
Labels
Milestone
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was:
@angular-devkit/build-angular v12.0.0
Description
When you run
ng build --configuration production
on a medium or large application using@angular-devkit/build-angular v12.0.1
. The command uses all the available memory (in my case 12 GB) before failing with a Javascript heap out of memory error The same command on the same application using@angular-devkit/build-angular v12.0.0
uses 2.7 GB at peak and builds successfully. For a small application, the command same using@angular-devkit/build-angular v12.0.1
does not fail but the difference in memory usage is very high compared to v12.0.0. For example in another smaller application that v12.0.1 uses 2.7 GB of memory, v12.0.0 uses 1.3 GB.🔬 Minimal Reproduction
On an angular-cli created application, with
@angular-devkit/build-angular v12.0.0
run the commandng build --configuration production
and observe the memory usage. Update the same package to v12.0.1 and run the command the second time and observe the memory usage difference.🔥 Exception or Error
On a large or medium application and depending on the size of the computer's RAM. you may encounter.
🌍 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: