Migrate from @import to @use at-rules#124
Migrate from @import to @use at-rules#124jackdomleo7 merged 12 commits intojackdomleo7:masterfrom tannerdolby:123-migrate-import-to-use
Conversation
jackdomleo7
left a comment
There was a problem hiding this comment.
Looks really good @tannerdolby, thank you!
Just 1 comment, interested to hear your thoughts on it before approving.
Also, seeing all these ../../ makes me wonder if we can add aliases to SCSS where ~ is an alias for src?
|
Will this change cause a breaking change? I.e. will I need to release a new major version of this package? |
|
Also, would the usage docs need updating? |
|
Ok great @jackdomleo7, your welcome! I'm not entirely sure if we can add aliases to SCSS, although the constant |
|
I don't think this will cause a breaking change from reviewing sass - breaking changes, but just to be safe it might be best to release a new major version for the package so if anyone wants to move forward with the Otherwise its fine for users to stay at the prev version (with |
|
Yeah, the usage docs would indeed need to be updated for L124 and L127 in the README.md. |
|
The |
|
I agree, let's leave the aliasing for now as it's not important for this work. This is a good PR, for my own comfort, I'm going to do some investigation so I fully understand what's going on here - so this is going to delay the PR for a short while. 🙂 But I really appreciate this being highlighted and worked on! |
|
I've looked into this a little further and these are my findings:
I'm happy with everything in this PR, especially now that I understand it all. I have decided I am going to deploy this as a new major as we discussed earlier above. With this in mind, I will deploy a new minor version first (before completing this PR) so that people using v1 can make use of new features awaiting to be deployed without having to upgrade to v2 to utilise them. I will approve this PR once it is ready to be merged. Would you be happy to maintain this PR and keep it updated with master in the meantime @tannerdolby? Thanks once again for this PR! |
|
Your welcome! 🚀 I'm not super familiar with peer dependencies, but I do think that adding Ok great! Yeah, I agree. Deploying a new minor version before this is merged will be a good idea so anyone using v1 can make use of new features waiting to be deployed without having to jump all the way to v2. Yes I'm happy to maintain this PR and keep it up-to-date with master until were ready to move forward. |
…3-migrate-import-to-use
|
Hi @tannerdolby. I have released the new minor. Whenever you are ready, could you update this branch with master, then I'd be happy to approve so we can merge. In the meantime, I'm going to be working on v2 milestone issues |
|
Hi @jackdomleo7! Ok sounds good. I will merge with master shortly and get things up to date here. Got it, I will have a look over at the milestone issues also. Thanks again for all your review throughout this PR :) |
|
I merged with upstream For some context, |
|
It failed on the "Is git clean" step. Essentially this is a step in the pipeline run after npm run build. If it fails, it means the generated CSS files don't match up. Thank you! |
jackdomleo7
left a comment
There was a problem hiding this comment.
Thanks a lot for this @tannerdolby
|
Your welcome @jackdomleo7! |
Migrates all
@importat-rules to@usein preparation fordart-sassdeprecating@import at-rules.Note: There are still 4
@importat-rules left in two files (README.md and test/index.css) in the project. But we can discuss converting these or leaving them during review. We started out at 41@importresults in 5 files and took it down to 4 results in 2 files which is exciting!Types of changes
Description
Resolves #123
Replaces all existing
@importat-rules with@usebecause@importwill eventually be deprecated indart-sassin the coming years.Link(s)
Screenshot(s)
Checklist:
xif you have considered this but thought there was nothing to add or modify).contributorssection inpackage.json(still put anxif you have considered this but decided not to add yourself).test/index.htmlto thetest/index.htmlin themasterbranch).