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 @support #711

Open
sapphi-red opened this issue Apr 6, 2024 · 0 comments
Open

Transpilation generates unnecessary fallback inside @support #711

sapphi-red opened this issue Apr 6, 2024 · 0 comments

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

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

No branches or pull requests

1 participant