You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
sapphi-red
changed the title
当vite dev 自定义模式mode(例如: vite --mode staging)启动时,总是会导致 optimized dependencies changed. reloading
preverve dep optimization cache for each mode
Aug 3, 2022
I suppose this could be useful too. Though it can be workaround by specifying process.env.NODE_ENV = 'development' in the Vite config so that dev can share the optimized deps, and in most case the optimized deps for different modes shouldn't be much different too 🤔 But when we optimize deps in builds in the future, I think this might be useful.
Describe the bug
当vite dev 自定义模式mode(例如: vite --mode staging)启动时,总是会导致 optimized dependencies changed. reloading。
而直接用vite 或vite -m development启动时,没有这个问题。
用官方的vue ts包将 package.json 的scripts 的dev命令内容改为vite --mode staging 即可复现
Reproduction
https://github.com/vitejs/vite/tree/main/playground/vue
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: