-
-
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
CSS preprocessor support with transformer: 'lightningcss'
#19112
Comments
Problems with the lightningcss side. parcel-bundler/lightningcss#624 |
@btea But why lightningcss even trying to process scss files? Shouldn't it be transformed by sass before passing to lightningcss? |
As I said before I have another part of an app that also using lightningcss and it doesnt have any issues with it because rspack/webpack transforms scss file to css before passing it to lightningcss loader |
Because you use |
But scss is not a valid css file and lightningcss shouldn't transform raw scss files the same way lightningcss shouldn't transform sass or less |
CSS preprocessors are not supported with I have a PR here: #19071 |
transformer: 'lightningcss'
Describe the bug
Lightningcss fails on scss single line comments when using it as a transformer. It's strange because it should be processed by scss to generate valid css comments since it supports only multiline comments. I has another part of an app bundling by rspack and it works fine so it appears a vite bug
Reproduction
https://github.com/taras-turchenko-moc/lightningcss-scss-comments-bug
Steps to reproduce
Reproduction link has a github repo with default vanilla setup, enabled lightningcss, renamed style.css to scss and added a comment
System Info
Used Package Manager
npm
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: