-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make all members unreferencable in nested import (#92)
Fixes #83. Previously, only local members from the importing stylesheet would be marked as unreferencable within a nested import, but references to global members would create a circular dependency, so they shouldn't be allowed either.
- Loading branch information
Showing
5 changed files
with
37 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<==> arguments | ||
--migrate-deps | ||
|
||
<==> input/entrypoint.scss | ||
@mixin foo { | ||
color: green; | ||
} | ||
|
||
@import "other"; | ||
|
||
<==> input/_other.scss | ||
a { | ||
@include foo; | ||
} | ||
|
||
<==> error.txt | ||
Error: This stylesheet was loaded by a nested import in entrypoint.scss. The module system only supports loading nested CSS using the load-css() mixin, which doesn't allow access to mixins from the outer stylesheet. | ||
, | ||
2 | @include foo; | ||
| ^^^^^^^^^^^^ | ||
' | ||
_other.scss 2:3 root stylesheet | ||
Migration failed! |
This file contains 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
This file contains 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