summaryrefslogtreecommitdiff
path: root/node_modules/postcss/lib/map-generator.js
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-01-15 18:39:22 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-01-15 18:39:22 +0800
commitfc20313fc9b457d6676ad273227f6bad3c652b92 (patch)
tree9935855ffdd7a2d5d0ef5659f63309b4e15fa014 /node_modules/postcss/lib/map-generator.js
parentd76c63da1426adbb2031ae4562d29521d621d817 (diff)
upgrade for package
Diffstat (limited to 'node_modules/postcss/lib/map-generator.js')
-rw-r--r--node_modules/postcss/lib/map-generator.js5
1 files changed, 3 insertions, 2 deletions
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)
}
}