postcss-nesting
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -0,1 +1,5 @@ | ||
## 2.0.4 (2015-09-23) | ||
- Updated: Map source raws | ||
## 2.0.3 (2015-09-22) | ||
@@ -2,0 +6,0 @@ |
15
index.js
@@ -15,2 +15,7 @@ var postcss = require('postcss'); | ||
function cleanNode(node) { | ||
if (!('before' in node.raws)) node.raws.before = node.parent.raws.before || ''; | ||
if (!('after' in node.raws)) node.raws.after = node.parent.raws.after || ''; | ||
} | ||
module.exports = postcss.plugin('postcss-nested', function (opts) { | ||
@@ -30,3 +35,7 @@ var bubble = ['document', 'media', 'supports']; | ||
var newrule = postcss.rule({ | ||
raws: atrule.raws | ||
raws: { | ||
before: atrule.raws.before, | ||
between: atrule.raws.between, | ||
after: atrule.raws.after | ||
} | ||
}); | ||
@@ -41,2 +50,4 @@ | ||
newrule.nodes.forEach(cleanNode); | ||
transpileSelectors(rule, newrule); | ||
@@ -54,2 +65,4 @@ | ||
newrule.nodes.forEach(cleanNode); | ||
atrule.removeAll(); | ||
@@ -56,0 +69,0 @@ |
{ | ||
"name": "postcss-nesting", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "Transpiles nested rules according to CSS Nesting Module Level 3", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14126
53