-
-
Notifications
You must be signed in to change notification settings - Fork 590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin replace chugs a lot of memory #1064
Comments
thanks for opening the issue. we'd love to see a pull request that took care of the concern and reduce the memory requirement. with the plugin working as it should without issue, and very few maintainers stepping up to work on it, it's not likely that your concern will be addressed without community support. |
I'll see what I can do. Although I think it will become more prominent when people will start shipping nuxt nitro websites in netlify environments, since it's very easy to reach memory limits there. |
As a future reference: what makes memory go through the moon is @shellscape @danielroe thanks to both for the support. Have a nice day! |
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: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.
The text was updated successfully, but these errors were encountered: