Skip to content
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

Transpilation generates unnecessary fallback inside @supports #711

Open
sapphi-red opened this issue Apr 6, 2024 · 0 comments · May be fixed by #878
Open

Transpilation generates unnecessary fallback inside @supports #711

sapphi-red opened this issue Apr 6, 2024 · 0 comments · May be fixed by #878

Comments

@sapphi-red
Copy link

sapphi-red commented Apr 6, 2024

Transpilation generates unnecessary fallback inside @support. For example, when lab() is used inside @supports (color: lab(0% 0 0)), lightningcss generates @supports (color: lab(0% 0 0)) inside it.

playground

These kinds of input happens in Vite because Vite runs lightningcss two times. First to transpile CSS to make other plugins able to process CSS, second to minify the final CSS.
Original issue: vitejs/vite#16354

@sapphi-red sapphi-red changed the title Transpilation generates unnecessary fallback inside @support Transpilation generates unnecessary fallback inside @supports Dec 26, 2024
@sapphi-red sapphi-red linked a pull request Dec 26, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant