From fc20313fc9b457d6676ad273227f6bad3c652b92 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 15 Jan 2024 18:39:22 +0800 Subject: upgrade for package --- node_modules/postcss/lib/map-generator.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'node_modules/postcss/lib/map-generator.js') diff --git a/node_modules/postcss/lib/map-generator.js b/node_modules/postcss/lib/map-generator.js index 523b4639..b5da1642 100644 --- a/node_modules/postcss/lib/map-generator.js +++ b/node_modules/postcss/lib/map-generator.js @@ -16,6 +16,7 @@ class MapGenerator { this.root = root this.opts = opts this.css = cssString + this.originalCSS = cssString this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute this.memoizedFileURLs = new Map() @@ -74,7 +75,7 @@ class MapGenerator { } } } else if (this.css) { - this.css = this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm, '') + this.css = this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm, '') } } @@ -276,7 +277,7 @@ class MapGenerator { } }) } else { - let input = new Input(this.css, this.opts) + let input = new Input(this.originalCSS, this.opts) if (input.map) this.previousMaps.push(input.map) } } -- cgit v1.2.3