Expected Behavior
Plugin replace should not, hopefully, use 3 times as much heap as without them
Actual Behavior
Running node build.js without plugin replace logs these memory readings:
Using 6.72 MB before
Using 7.36 MB after rollup
Using 8.17 MB after write
When plugin replace is activated it logs these memory readings instead:
Using 7.17 MB before
Using 26.22 MB after rollup
Using 27.43 MB after write
This is almost 3 times the heap size used without the plugin.
This became an issue while bundling a nuxt nitro application in netlify, that has 6GB hard limit on RAM usage in build containers.
Expected Behavior
Plugin replace should not, hopefully, use 3 times as much heap as without them
Actual Behavior
Running
node build.jswithout plugin replace logs these memory readings:When plugin replace is activated it logs these memory readings instead:
This is almost 3 times the heap size used without the plugin.
This became an issue while bundling a nuxt nitro application in netlify, that has 6GB hard limit on RAM usage in build containers.