+1
-1
@@ -10,3 +10,3 @@ 'use strict' | ||
| constructor(plugins = []) { | ||
| this.version = '8.5.18' | ||
| this.version = '8.5.19' | ||
| this.plugins = this.normalize(plugins) | ||
@@ -13,0 +13,0 @@ } |
+16
-1
@@ -15,2 +15,15 @@ 'use strict' | ||
| normalize(child, sample, type) { | ||
| let keepBefore = new Set() | ||
| for (let node of Array.isArray(child) ? child : [child]) { | ||
| if ( | ||
| node && | ||
| typeof node === 'object' && | ||
| !node.parent && | ||
| node.raws && | ||
| typeof node.raws.before !== 'undefined' | ||
| ) { | ||
| keepBefore.add(node.raws) | ||
| } | ||
| } | ||
| let nodes = super.normalize(child) | ||
@@ -27,3 +40,5 @@ | ||
| for (let node of nodes) { | ||
| node.raws.before = sample.raws.before | ||
| if (!keepBefore.has(node.raws)) { | ||
| node.raws.before = sample.raws.before | ||
| } | ||
| } | ||
@@ -30,0 +45,0 @@ } |
+1
-1
| { | ||
| "name": "postcss", | ||
| "version": "8.5.18", | ||
| "version": "8.5.19", | ||
| "description": "Tool for transforming styles with JS plugins", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
214823
0.17%7327
0.19%