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
Dynamic import module cannot seperate source code and dependencies code after build.Inside vite, only the dependencies of non-dynamically imported modules will be packaged into the vendor. But for dynamically imported modules, their dependencies will be packaged with the application code, resulting in a decrease in the cache hit rate.
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 https://github.com/vuejs/vue-next instead.
sanyuan0704
changed the title
Dynamic import module cannot seperate source code and dependencies code after build
Dynamic import module build problem
Dec 24, 2021
Describe the bug
Dynamic import module cannot seperate source code and dependencies code after build.Inside vite, only the dependencies of non-dynamically imported modules will be packaged into the vendor. But for dynamically imported modules, their dependencies will be packaged with the application code, resulting in a decrease in the cache hit rate.
Reproduction
https://github.com/sanyuan0704/vite-dymaic-import-bundle-problem
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: