-
-
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
fix(css): avoid using default export from sass-embedded #19053
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While I wasn't able to reproduce it, the default export seems to be deprecated, so I think we should avoid using it anyways.
https://sass-lang.com/documentation/breaking-changes/default-export/
You most likely need to have sass-embedded installed first; but yay... |
There was a similar issue in #17880. As I commented in the previous PR, references
I still have no idea why |
commit: |
I might be wrong but the code I changed is in a function that is only called if the sassPackage is https://github.com/vitejs/vite/blob/main/packages/vite/src/node/plugins/css.ts#L2575 |
the code that handles the specific |
|
I added a conditional check. Maybe that fixes this situation a little better? |
fixes #19052
I pray that this doesn't mess anything else up :)