Propagate selector source specificity between modules

Closes #866
This commit is contained in:
Natalie Weizenbaum 2019-10-30 15:11:25 -07:00
parent df5f3af4e9
commit be4ca60045
3 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
## 1.23.3
* Fix a bug where selectors were being trimmed over-eagerly when `@extend`
crossed module boundaries.
## 1.23.2
### Command-Line Interface

View File

@ -400,6 +400,7 @@ class Extender {
for (var extender in extenders) {
if (extender.isEmpty) continue;
_sourceSpecificity.addAll(extender._sourceSpecificity);
extender._extensions.forEach((target, newSources) {
// Private selectors can't be extended across module boundaries.
if (target is PlaceholderSelector && target.isPrivate) return;

View File

@ -1,5 +1,5 @@
name: sass
version: 1.23.2
version: 1.23.3
description: A Sass implementation in Dart.
author: Sass Team
homepage: https://github.com/sass/dart-sass