@stylable/core
Advanced tools
Comparing version 3.7.0 to 3.7.2
@@ -69,2 +69,3 @@ import postcss from 'postcss'; | ||
mixins?: RefedMixin[]; | ||
stScopeSelector?: string; | ||
} | ||
@@ -71,0 +72,0 @@ export interface DeclStylableProps { |
@@ -155,6 +155,8 @@ "use strict"; | ||
atRule.walkRules((rule) => { | ||
rule.replaceWith(rule.clone({ | ||
const scopedRule = rule.clone({ | ||
selector: stylable_utils_1.scopeSelector(scopingRule.selector, rule.selector, false) | ||
.selector, | ||
})); | ||
}); | ||
scopedRule.stScopeSelector = atRule.params; | ||
rule.replaceWith(scopedRule); | ||
}); | ||
@@ -161,0 +163,0 @@ } |
{ | ||
"name": "@stylable/core", | ||
"version": "3.7.0", | ||
"version": "3.7.2", | ||
"description": "CSS for Components", | ||
@@ -5,0 +5,0 @@ "main": "./cjs/index.js", |
@@ -184,8 +184,8 @@ import hash from 'murmurhash'; | ||
atRule.walkRules((rule) => { | ||
rule.replaceWith( | ||
rule.clone({ | ||
selector: scopeSelector(scopingRule.selector, rule.selector, false) | ||
.selector, | ||
}) | ||
); | ||
const scopedRule = rule.clone({ | ||
selector: scopeSelector(scopingRule.selector, rule.selector, false) | ||
.selector, | ||
}); | ||
(scopedRule as SRule).stScopeSelector = atRule.params; | ||
rule.replaceWith(scopedRule); | ||
}); | ||
@@ -796,2 +796,3 @@ } | ||
mixins?: RefedMixin[]; | ||
stScopeSelector?: string; | ||
} | ||
@@ -798,0 +799,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
675397
11583