You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have a migrator that would let you refactor entrypoint.scss to directly depend on a and b instead of going through indirect, e.g.:
<==> entrypoint.scss@use"a";
@use"b";
a {
color: a.$color;
background: b.$color;
}
The motivating use case here would be to get rid of use rules like @use "library.import", which we've been using as a temporary workaround when migrating an library that already has downstream users using @use. However, the generalized version could be useful for other refactoring.
To ease implementation, this should only support code that has already migrated to the module system, since that should make it possible to implement without fully analyzing the entire dependency graph.
The text was updated successfully, but these errors were encountered:
Assume a case where you have a set of files like:
It would be nice to have a migrator that would let you refactor
entrypoint.scss
to directly depend on a and b instead of going through indirect, e.g.:The motivating use case here would be to get rid of use rules like
@use "library.import"
, which we've been using as a temporary workaround when migrating an library that already has downstream users using@use
. However, the generalized version could be useful for other refactoring.To ease implementation, this should only support code that has already migrated to the module system, since that should make it possible to implement without fully analyzing the entire dependency graph.
The text was updated successfully, but these errors were encountered: