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

Migrate use of @import in scss to @use #36304

Closed
2 tasks done
SamuelMiller opened this issue May 8, 2022 · 1 comment
Closed
2 tasks done

Migrate use of @import in scss to @use #36304

SamuelMiller opened this issue May 8, 2022 · 1 comment
Labels

Comments

@SamuelMiller
Copy link

SamuelMiller commented May 8, 2022

Prerequisites

Proposal

Currently, Bootstrap scss uses the @import command, which is being phased out according to sass-lang.com

https://sass-lang.com/documentation/at-rules/import
"The Sass team discourages the continued use of the @import rule. Sass will gradually phase it out over the next few years, and eventually remove it from the language entirely. Prefer the @use rule instead. (Note that only Dart Sass currently supports @use. Users of other implementations must use the @import rule instead.)"

They offer a migrator tool, which would make updating the scss files fairly easy: https://sass-lang.com/documentation/cli/migrator

Motivation and context

To keep up with the times, man! :)

@ffoodd
Copy link
Member

ffoodd commented May 8, 2022

Duplicates #29853.

On our roadmap for ages, but would be a breaking change in v5. Easy to migrate Bootstrap's core, not really to force a dependency update for millions of users. 😉

@ffoodd ffoodd closed this as completed May 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants