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
clientCache的全局共享问题 #390
Labels
Comments
wuzequanyouzi
changed the title
在vite server下,从代码中进行vite build情况下,build使用了server的缓存
clientCache的全局共享问题
Apr 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related plugins
plugin-vue
plugin-vue-jsx
Describe the bug
In Vite Server, when performing Vite build from the code, the build used the clientCache cache variable of the server, resulting in incorrect script content obtained. Vite build should have obtained the full script instead of obtaining hmr data. Ultimately leading to mutation errors:
The problem occurred at wxt#538 wxt#606
Should clientCache be removed globally? Put it inside the vuePlugin method, so that the cache obtained by each vite configured vuePlugin is independent
Reproduction
https://stackblitz.com/~/github.com/wuzequanyouzi/test-returned
Steps to reproduce
vite.config
and setoptions.build.sourceMap
to inlineApp.vue
, such as addingconsole. log(123)
in the script. will trigger build, but will fail to build.System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: