Skip to content

refactor(css)!: always use sass compiler API #19978

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

Merged

Conversation

sapphi-red
Copy link
Member

@sapphi-red sapphi-red commented May 1, 2025

Description

Built on top of #19977.

Removes css.preprocessorOptions.{sass,scss}.api option and always use 'modern-compiler' for it.
Normal sass package also supports it and probably there's no reason to use 'modern' over it.
This would allow us to remove duplicated code between 'modern' and 'modern-compiler'.

Users will get a type error, but it won't break the behavior.

@sapphi-red sapphi-red added p1-chore Doesn't change code behavior (priority) breaking change labels May 1, 2025
@sapphi-red sapphi-red added this to the 7.0 milestone May 1, 2025
@sapphi-red sapphi-red marked this pull request as ready for review May 16, 2025 03:12
bluwy
bluwy previously approved these changes May 25, 2025
patak-dev
patak-dev previously approved these changes May 26, 2025
@sapphi-red sapphi-red dismissed stale reviews from patak-dev and bluwy via 4095ccb May 27, 2025 11:45
@patak-dev patak-dev merged commit 3bfe5c5 into vitejs:main May 27, 2025
15 checks passed
@sapphi-red sapphi-red deleted the refactor/css-always-use-sass-compiler-api branch May 28, 2025 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change p1-chore Doesn't change code behavior (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants