With angular 9 and it's new compilation engine IVY, my CI build times have increased substantially. This is of course is because ngcc
is ran on many modules.
e.g.
Compiling @angular/core : es2015 as esm2015
Compiling @angular/common : es2015 as esm2015
...
I thought ngcc
cached the compiled libs in node_modules
, but my node_modules
is cached on my CI job and there is still compilation occuring, so it can't be.
What path should I cache to avoid recompiling all modules with ngcc
on each build?
node_modules/.cache
(a hidden directory), so the glob pattern might be off? – Indecipherableyarn install
(ornpm install
). – Martijn