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
Vite automatically extracts the CSS used by modules in an async chunk and generates a separate file for it. The CSS file is automatically loaded via a tag when the associated async chunk is loaded, and the async chunk is guaranteed to only be evaluated after the CSS is loaded to avoid FOUC.
However, when building to systemjs output, this feature seems to be ignored.
Reproduction
Believe this line here should include system or systemjs as well
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.
Describe the bug
According to https://vitejs.dev/guide/features.html#css-code-splitting
However, when building to systemjs output, this feature seems to be ignored.
Reproduction
Believe this line here should include
system
orsystemjs
as wellvite/packages/vite/src/node/plugins/css.ts
Line 397 in 1809fcc
Potentially adding to this line as well:
vite/packages/vite/src/node/plugins/css.ts
Line 456 in 1809fcc
A PR is available for your convenience #5902 :)
Have tested, and works as expected after applying the patch.
System Info
Used Package Manager
yarn
Logs
Validations
The text was updated successfully, but these errors were encountered: