You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using this command: ncc -m -s src/index.js to compile a large project in a single javascript bundle. However, it doesn't work in github pipelines since their containers are limited to 2 GB of ram causing a "memory heap" error during compilation.
I've tested locally by using this command: /usr/bin/time --format "%M" ncc -m -s src/index.js
4710052 -> It means that ncc consumes 4.7GB of ram to compile.
To reduce this amount I have to:
disable the cache (-500Mb)
disable the minification
disable the sourcemap
doing so, the memory consumed is 1.5GB (which is fine for github
By the way, despite cache that should be disabled in pipelines, minification and sourcemap together are consume way too much.
Is there a way to improve this?
The text was updated successfully, but these errors were encountered:
I'm using this command:
ncc -m -s src/index.js
to compile a large project in a single javascript bundle. However, it doesn't work in github pipelines since their containers are limited to 2 GB of ram causing a "memory heap" error during compilation.I've tested locally by using this command:
/usr/bin/time --format "%M" ncc -m -s src/index.js
And this is the result:
4710052 -> It means that ncc consumes 4.7GB of ram to compile.
To reduce this amount I have to:
doing so, the memory consumed is 1.5GB (which is fine for github
By the way, despite cache that should be disabled in pipelines, minification and sourcemap together are consume way too much.
Is there a way to improve this?
The text was updated successfully, but these errors were encountered: