svg-sprite
svg-sprite copied to clipboard
[Critical Bug] Severe Memory leak on SSR (JavaScript Heap Out of Memory)
Describe the bug
Memory continues to grow and GC is never triggered and this results in JavaScript Heap Out of Memory on production (or any) environment, regardless of how high you set the node young and old memory space. The profiling results are attached. @harlan-zw @farnabaz @atinux I do not know if this module is maintained anymore as the last active development is two years ago.
Reproduction
https://github.com/raminjafary/nuxt-svg-sprite-module-repro
Additional context
Comment out all <svg-icon> or put them inside <client-only> and the issue goes away:
Logs