Ask questionsAngular 12 RC 2 - Compilation is enormously slow and crashes on large build.
<!-- Can you pin-point the command or commands that are effected by this bug? --> <!-- ✍️edit: -->
With small code changes building/sealing takes 2-3 minutes.
Answer questions alan-agius4
@clydin is working on improving the SASS compilation times in general by offloading the compilation to a worker and changing the SASS compilation asynchronous to synchronous. You can see this PR https://github.com/angular/angular-cli/pull/20740.
Dart-sass is synchronous can be twice as fast. From initial testing I did see some good improvements in your project, and the build time did improve by around
15%. The compilation of your application took around
Regarding the OOM issues, I still didn't receive answer for the following questions. I did trigger multiple rebuilds and memory usage did stay consistent;
Should i log a query under @angular/material ?
I think this would be useful, so that it's also tracked in their repo.