-
Notifications
You must be signed in to change notification settings - Fork 47
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
@use rules must be written before any other rules. #70
Comments
Any update on this? This is preventing my library to build. |
I'm not planning to work on this issue, but PRs welcome! |
I've made some edits to parse correctly Had to add a config @thgh what do you think? |
PR welcome! Let's make a v4 with Rollup 3 support, emitFile and this |
Hi Onyx, You can make a pull request from this page. That will create an entry in the list of pull requests. From there, I and other people can easily review your changes. When everything looks good, we will merge the changes in the v3 branch. There is also a v4 branch recently using "emitFile" from Rollup which allows for smarter filenames of assets like css files. Looking forward to your PR! |
Hey, sorry came late to the party, was the PR created? Thanks! |
It would nice to be able to use sass/dartsass and the at-rules, especially the @use since @import has been deprecated(https://sass-lang.com/documentation/at-rules/import). However doing so will most likely yield a compilation error: "@use rules must be written before any other rules."
I looked a bit at the code and it seems like the plugin is concatenating all the scss partials and then compiling it to css. By doing so @use rules will end up in the middle of the concatenated string which yields the error.
I created a small repo to reproduce the issue: https://github.com/jrkarlsson/rollup-plugin-scss-issue
The text was updated successfully, but these errors were encountered: