-
-
Notifications
You must be signed in to change notification settings - Fork 333
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
SSR without NODE_ENV loads devtools and causes memory leak #1841
Comments
I've fixed this issue. "vue-i18n": "npm:vue-i18n-nightly@10.0.0-alpha.3-5ff1b1d", |
one more thing. |
Oops I forgot to add it in my reproducible example. Im going to test it, thanks! |
@kazupon yooouuri/devtools-memory-leak-ssr-vue-i18n@bf19ff2
vite config
Added a
|
@kazupon but if you change And run First time: After a few refreshes: |
That is because you have set the flag to development instead of production. That is why |
close, since already fixed latest version. |
Reporting a bug?
The global
__VUE_DEVTOOLS_PLUGINS__
array expands on every request, thus creates a memory leak.Also when the project is build with mode = production, should
NODE_ENV=production
still be needed?Expected behavior
__VUE_DEVTOOLS_PLUGINS__
should not be present when vite builds with production and there should be no memory leak.Reproduction
Run without
NODE_ENV=production
and withSystem Info
Screenshot
Additional context
global without NODE_ENV=production
with NODE_ENV=production
Validations
The text was updated successfully, but these errors were encountered: