-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
bugSomething isn't workingSomething isn't workingmodule systemPart of the module system migratorPart of the module system migrator
Description
If the entrypoint imports a file that uses variables that were originally defined in the entrypoint, the migrator generates a @use
that imports the original file. For example:
// entrypoint.scss
$var: value;
@import "other";
// _other.scss
@debug $var;
is migrated to:
// entrypoint.scss
$var: value;
@use "other";
// _other.scss
@use "entrypoint";
@debug entrypoint.$var;
This is invalid, as it creates a dependency loop. Since it's not totally clear what the user intended, the migrator should probably error out.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingmodule systemPart of the module system migratorPart of the module system migrator
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
[-]Migrator can generate @use loops[/-][+]Module migrator can generate @use loops[/+]pamelalozano16 commentedon Dec 7, 2023
The given example may be a bit misleading. Here's another example to provide to elaborate further.
Input:
Output: