-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build.modulePreload=false dynamic import css will lose #10773
Comments
This comment was marked as spam.
This comment was marked as spam.
I've also encountered this. It also happens if CSS is imported synchronously from a dynamic JS import. |
This comment was marked as spam.
This comment was marked as spam.
why i use You can try this code in html This is Google Chrome BUG ?? |
Is there any progress on this bug? |
There is a PR now to fix this one at #13973 meta: @daniele-orlando please avoid sending "Any updates?" messages to issues in the future 🙏🏼 |
Understood. Sorry for the silly question. 😓 |
Describe the bug
build.modulePreload=false
This config should config preload css only,not delete module dependence
Reproduction
https://stackblitz.com/edit/vitejs-vite-u8njgy?file=main.js,style.js,vite.config.js&terminal=dev
Steps to reproduce
npm run dev
click "click me" button
the background-color will be red
npm run preview
click "click me" button
the background-color will not be red
System Info
System: OS: Linux 5.0 undefined CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 - /bin/jsh Binaries: Node: 16.14.2 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 7.17.0 - /usr/local/bin/npm npmPackages: vite: ^3.2.1 => 3.2.2
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: