fix(html): fix css disorder when building multiple entry html#19143
fix(html): fix css disorder when building multiple entry html#19143patak-cat merged 2 commits intovitejs:mainfrom thy486:fix-multiple-entries-css-import
Conversation
sapphi-red
left a comment
There was a problem hiding this comment.
Would you create a reproduction so that I can understand when this happens?
Reproductionhttps://stackblitz.com/edit/vitejs-vite-f9kv8tr4 The meaning of |
sapphi-red
left a comment
There was a problem hiding this comment.
Thanks for the reproduction.
… of the code for extracting css tags
|
/ecosystem-ci run |
commit: |
|
📝 Ran ecosystem CI on
✅ analogjs, laravel, marko, quasar, rakkas, react-router, storybook, sveltekit, unocss, vike, vite-environment-examples, vite-plugin-pwa, vite-plugin-react, vite-plugin-react-swc, vite-plugin-svelte, vite-plugin-vue, vite-setup-catalogue, vitepress, vuepress |
patak-cat
left a comment
There was a problem hiding this comment.
(the new Nuxt fail is due to the corepack issue)
Description
When Vite collects css tags, it will cache the analyzed css chunk. But when collecting css tags for the second time, since the css chunk has been cached, Vite will no longer analyze the deep import, which will ignore the results of the previous import, causing the css to be out of order.