Some module packaging results affect the use of browser cache, such as these modules plugin-vue:export-helper、vite/preload-helper、vite/modulepreload-polyfill #78
meizilove258
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Some module packaging results affect the use of browser cache, such as these modules plugin-vue:export-helper、vite/preload-helper、vite/modulepreload-polyfill。
The problem is described in the following connection:https://mp.weixin.qq.com/s/vlvTXYRgtbhW3-RkuaV2Mg。
My suggestion is that modules like the following screenshot are extracted into a separate file, so that when packaging these modules will be considered as modules in node_modules, and will be extracted into vendor.[hash].js. So that solves the problem, I don't know how many modules are written this way.
Retrieval example code address: https://github.com/meizilove258/vite-code-split.git
Beta Was this translation helpful? Give feedback.
All reactions