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

Another implicit dependency fix #1352

Merged
merged 2 commits into from Jun 11, 2021
Merged

Another implicit dependency fix #1352

merged 2 commits into from Jun 11, 2021

Conversation

jathak
Copy link
Member

@jathak jathak commented Jun 11, 2021

I haven't yet worked out a fix for the at-root issue, but this fix is actually necessary for the internal division migration.

This splits out _globalModules into two fields: one that contains @use as * global modules and one that contains modules that come from @import-ing a @forward.

See sass/sass-spec#1667.

@jathak jathak requested a review from nex3 June 11, 2021 19:22
@@ -837,7 +809,7 @@ class AsyncEnvironment {
Module toModule(CssStylesheet css, ExtensionStore extensionStore) {
assert(atRoot);
return _EnvironmentModule(this, css, extensionStore,
forwarded: _forwardedModules);
forwarded: _forwardedModules?.keys.toSet());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would probably be more efficient to use a MapKeySet here, unless there's a reason it shouldn't update if _forwardedModules is modified.

@jathak jathak merged commit f1d36a1 into master Jun 11, 2021
@jathak jathak deleted the post-facto branch June 11, 2021 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants