postcss 8.4.32 → 8.4.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/map-generator.js +3 -2
- package/lib/no-work-result.js +3 -0
- package/lib/processor.js +5 -5
- package/package.json +1 -1
package/lib/map-generator.js
CHANGED
@@ -16,6 +16,7 @@ class MapGenerator {
|
|
16
16
|
this.root = root
|
17
17
|
this.opts = opts
|
18
18
|
this.css = cssString
|
19
|
+
this.originalCSS = cssString
|
19
20
|
this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute
|
20
21
|
|
21
22
|
this.memoizedFileURLs = new Map()
|
@@ -74,7 +75,7 @@ class MapGenerator {
|
|
74
75
|
}
|
75
76
|
}
|
76
77
|
} else if (this.css) {
|
77
|
-
this.css = this.css.replace(
|
78
|
+
this.css = this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm, '')
|
78
79
|
}
|
79
80
|
}
|
80
81
|
|
@@ -276,7 +277,7 @@ class MapGenerator {
|
|
276
277
|
}
|
277
278
|
})
|
278
279
|
} else {
|
279
|
-
let input = new Input(this.
|
280
|
+
let input = new Input(this.originalCSS, this.opts)
|
280
281
|
if (input.map) this.previousMaps.push(input.map)
|
281
282
|
}
|
282
283
|
}
|
package/lib/no-work-result.js
CHANGED
package/lib/processor.js
CHANGED
@@ -7,7 +7,7 @@ let Root = require('./root')
|
|
7
7
|
|
8
8
|
class Processor {
|
9
9
|
constructor(plugins = []) {
|
10
|
-
this.version = '8.4.
|
10
|
+
this.version = '8.4.33'
|
11
11
|
this.plugins = this.normalize(plugins)
|
12
12
|
}
|
13
13
|
|
@@ -43,10 +43,10 @@ class Processor {
|
|
43
43
|
|
44
44
|
process(css, opts = {}) {
|
45
45
|
if (
|
46
|
-
this.plugins.length
|
47
|
-
|
48
|
-
|
49
|
-
|
46
|
+
!this.plugins.length &&
|
47
|
+
!opts.parser &&
|
48
|
+
!opts.stringifier &&
|
49
|
+
!opts.syntax
|
50
50
|
) {
|
51
51
|
return new NoWorkResult(this, css, opts)
|
52
52
|
} else {
|