postcss 8.4.35 → 8.4.37
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 +11 -3
- package/lib/processor.js +1 -1
- package/package.json +2 -2
package/lib/map-generator.js
CHANGED
@@ -98,9 +98,14 @@ class MapGenerator {
|
|
98
98
|
} else if (this.previous().length === 1) {
|
99
99
|
let prev = this.previous()[0].consumer()
|
100
100
|
prev.file = this.outputFile()
|
101
|
-
this.map = SourceMapGenerator.fromSourceMap(prev
|
101
|
+
this.map = SourceMapGenerator.fromSourceMap(prev, {
|
102
|
+
ignoreInvalidMapping: true
|
103
|
+
})
|
102
104
|
} else {
|
103
|
-
this.map = new SourceMapGenerator({
|
105
|
+
this.map = new SourceMapGenerator({
|
106
|
+
file: this.outputFile(),
|
107
|
+
ignoreInvalidMapping: true
|
108
|
+
})
|
104
109
|
this.map.addMapping({
|
105
110
|
generated: { column: 0, line: 1 },
|
106
111
|
original: { column: 0, line: 1 },
|
@@ -123,7 +128,10 @@ class MapGenerator {
|
|
123
128
|
|
124
129
|
generateString() {
|
125
130
|
this.css = ''
|
126
|
-
this.map = new SourceMapGenerator({
|
131
|
+
this.map = new SourceMapGenerator({
|
132
|
+
file: this.outputFile(),
|
133
|
+
ignoreInvalidMapping: true
|
134
|
+
})
|
127
135
|
|
128
136
|
let line = 1
|
129
137
|
let column = 1
|
package/lib/processor.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "postcss",
|
3
|
-
"version": "8.4.
|
3
|
+
"version": "8.4.37",
|
4
4
|
"description": "Tool for transforming styles with JS plugins",
|
5
5
|
"engines": {
|
6
6
|
"node": "^10 || ^12 || >=14"
|
@@ -76,7 +76,7 @@
|
|
76
76
|
"dependencies": {
|
77
77
|
"nanoid": "^3.3.7",
|
78
78
|
"picocolors": "^1.0.0",
|
79
|
-
"source-map-js": "^1.0
|
79
|
+
"source-map-js": "^1.2.0"
|
80
80
|
},
|
81
81
|
"browser": {
|
82
82
|
"./lib/terminal-highlight": false,
|