feat: add less, stylus compilers and astro, svelte, vue import resolution#1845
Merged
Merged
Conversation
commit: |
Member
|
Thanks a lot! Nailed it. |
Member
|
This inspired me to do 3c9d4ad and bug users less about the "compiler dependencies" (they're not always installed or transitive behind some framework/lib). |
Member
|
🚀 This pull request is included in v6.24.0. See Release 6.24.0 for release notes. Using Knip in a commercial project? Please consider becoming a sponsor. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds support for two new CSS preprocessors: Less and Stylus (very similar to Sass/Scss, but different syntax). The new compilors also have new tests and fixtures.
Additionally, this PR adds support to Astro, Svelte and Vue plugins to be able to resolve references to Scss, Less and Stylus specifiers (done with
@import,@useor@require). This new logic is also tested with new fixtures.Most changes come from the addition of fixtures, the important logic additions happen in the
src/compilers/folder.