Skip to content

Commit be4ca60

Browse files
committed
Propagate selector source specificity between modules
Closes #866
1 parent df5f3af commit be4ca60

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.23.3
2+
3+
* Fix a bug where selectors were being trimmed over-eagerly when `@extend`
4+
crossed module boundaries.
5+
16
## 1.23.2
27

38
### Command-Line Interface

lib/src/extend/extender.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ class Extender {
400400

401401
for (var extender in extenders) {
402402
if (extender.isEmpty) continue;
403+
_sourceSpecificity.addAll(extender._sourceSpecificity);
403404
extender._extensions.forEach((target, newSources) {
404405
// Private selectors can't be extended across module boundaries.
405406
if (target is PlaceholderSelector && target.isPrivate) return;

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: sass
2-
version: 1.23.2
2+
version: 1.23.3
33
description: A Sass implementation in Dart.
44
author: Sass Team
55
homepage: https://github.com/sass/dart-sass

0 commit comments

Comments
 (0)