-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Importing a node module with a CSS entry point no longer works #132
Comments
Using a relative import pointing to node_modules does work correctly. |
it seems counterintuitive having to do that though 🙂 |
Agreed, same thing for importing css through @import in the style section, just started looking through the code for the resolver to see what changed. |
Originally we treated direct imports to So the new approach rewrites js imports to css to There are definitely ways to fix it, just explaining the change here. |
understandable, though a little disappointed that safari is doing something different than the two major browsers 😃 |
Looks like this is broken again, running |
|
Fixed in 6e06fcf - added a test for it to avoid regressions... |
Describe the bug
Importing a package like
modern-normalize
now no longer works without suffixing?import
manuallySuffixing
?import
treats the module as external in production builds.System Info
vite
version: 0.14.3The text was updated successfully, but these errors were encountered: