Skip to content

Commit 46eb766

Browse files
committed
fix issue with postcss's patch
1 parent 4843413 commit 46eb766

File tree

3 files changed

+56
-59
lines changed

3 files changed

+56
-59
lines changed

patches/[email protected]

+6-9
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ index 4b5ee5e02f8ecdf880594d191ec1e84b983faeaa..7c73ea0a0338450804e7dbce16b7687a
201201
- terminalHighlight.registerInput(Input)
202202
-}
203203
diff --git a/lib/lazy-result.js b/lib/lazy-result.js
204-
index 126f40c7e9d7a1f131e2d75b68aeab6c93ee9673..75f9c946ed862d08b80afd00a6b3f2c6b3ab373a 100644
204+
index 126f40c7e9d7a1f131e2d75b68aeab6c93ee9673..c714eeeab0dc56559a24cbe4ba25fa25713c9401 100644
205205
--- a/lib/lazy-result.js
206206
+++ b/lib/lazy-result.js
207207
@@ -1,7 +1,6 @@
@@ -221,17 +221,14 @@ index 126f40c7e9d7a1f131e2d75b68aeab6c93ee9673..75f9c946ed862d08b80afd00a6b3f2c6
221221
- this.result.css = data[0]
222222
- this.result.map = data[1]
223223
+ this.result.css = '';
224-
+ stringify(str(this.result.root), chunk => {
224+
+ str(this.result.root, chunk => {
225225
+ this.result.css += chunk;
226226
+ });
227227

228228
return this.result
229229
}
230-
diff --git a/lib/map-generator.js b/lib/map-generator.js
231-
deleted file mode 100644
232-
index 71b21caa2e067b00383cf68c5f15bd68dae7c88b..0000000000000000000000000000000000000000
233230
diff --git a/lib/no-work-result.js b/lib/no-work-result.js
234-
index 05821b7a318c04b787b62441872b2680681aea4f..574815cadfa8d69f954f395480157a34166fd7fd 100644
231+
index 05821b7a318c04b787b62441872b2680681aea4f..b1e55ee59d7aa28fd0eea115a657671ce61aad71 100644
235232
--- a/lib/no-work-result.js
236233
+++ b/lib/no-work-result.js
237234
@@ -1,6 +1,5 @@
@@ -241,10 +238,11 @@ index 05821b7a318c04b787b62441872b2680681aea4f..574815cadfa8d69f954f395480157a34
241238
let stringify = require('./stringify')
242239
let warnOnce = require('./warn-once')
243240
let parse = require('./parse')
244-
@@ -28,19 +27,7 @@ class NoWorkResult {
241+
@@ -27,20 +26,6 @@ class NoWorkResult {
242+
return self.root
245243
}
246244
})
247-
245+
-
248246
- let map = new MapGenerator(str, root, this._opts, css)
249247
- if (map.isMap()) {
250248
- let [generatedCSS, generatedMap] = map.generate()
@@ -258,7 +256,6 @@ index 05821b7a318c04b787b62441872b2680681aea4f..574815cadfa8d69f954f395480157a34
258256
- map.clearAnnotation()
259257
- this.result.css = map.css
260258
- }
261-
+ this.result.css = css;
262259
}
263260

264261
async() {

patches/[email protected]

+2-2
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ index 9ffdfb7e619f07c27abafdce8b24bea178b72682..46ea502db535c1db87b01cb7ed1189fb
513513
] : [
514514
messages,
515515
diff --git a/lib/util/parseObjectStyles.js b/lib/util/parseObjectStyles.js
516-
index 995d87d5b83ed2745f43ab74c9282bfc8bc65c96..28cfda06dc8c9afdfd1c085944a62212fc16fc85 100644
516+
index 995d87d5b83ed2745f43ab74c9282bfc8bc65c96..fde38437e69159c5ce8210175bc15bc39b56a60f 100644
517517
--- a/lib/util/parseObjectStyles.js
518518
+++ b/lib/util/parseObjectStyles.js
519519
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "default", {
@@ -530,7 +530,7 @@ index 995d87d5b83ed2745f43ab74c9282bfc8bc65c96..28cfda06dc8c9afdfd1c085944a62212
530530
}
531531
return styles.flatMap((style)=>{
532532
- return (0, _postcss.default)([
533-
+ return new (0, _processor.default)([
533+
+ return new _processor.default([
534534
(0, _postcssnested.default)({
535535
bubble: [
536536
"screen"

pnpm-lock.yaml

+48-48
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)