Skip to content

Commit

Permalink
Fix extending selectors across multiple modules. (#1298)
Browse files Browse the repository at this point in the history
* Fix extending selectors across multiple modules.

Allows more than one module to extend the same upstream selector that,
in turn, extends a selector from its upstream module.

Properly skips creating an extra extension that was being counted as
unresolved when evaluating @extends.

See sass/sass-spec#1635
Fixes #1295
  • Loading branch information
Awjin Ahn committed Apr 28, 2021
1 parent 295a116 commit 30ede40
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,9 @@
## 1.32.12

* Fix a bug that disallowed more than one module from extending the same
selector from a module if that selector itself extended a selector from
another upstream module.

## 1.32.11

* Fix a bug where bogus indented syntax errors were reported for lines that
Expand Down
2 changes: 1 addition & 1 deletion lib/src/extend/extension_store.dart
Expand Up @@ -328,7 +328,7 @@ class ExtensionStore {
}

var containsExtension = selectors.first == extension.extender.selector;
var first = false;
var first = true;

This comment has been minimized.

Copy link
@oboxodo

oboxodo May 25, 2021

@Awjin This change seems to be causing a bug (in my code, most probably). Would you be so kind of taking a look at #1334?

for (var complex in selectors) {
// If the output contains the original complex selector, there's no
// need to recreate it.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
@@ -1,5 +1,5 @@
name: sass
version: 1.32.11
version: 1.32.12
description: A Sass implementation in Dart.
author: Sass Team
homepage: https://github.com/sass/dart-sass
Expand Down

0 comments on commit 30ede40

Please sign in to comment.