🔧
This commit is contained in:
5
node_modules/postcss/lib/map-generator.js
generated
vendored
5
node_modules/postcss/lib/map-generator.js
generated
vendored
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
3
node_modules/postcss/lib/no-work-result.js
generated
vendored
3
node_modules/postcss/lib/no-work-result.js
generated
vendored
@@ -37,6 +37,9 @@ class NoWorkResult {
|
||||
if (generatedMap) {
|
||||
this.result.map = generatedMap
|
||||
}
|
||||
} else {
|
||||
map.clearAnnotation();
|
||||
this.result.css = map.css;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
10
node_modules/postcss/lib/processor.js
generated
vendored
10
node_modules/postcss/lib/processor.js
generated
vendored
@@ -7,7 +7,7 @@ let Root = require('./root')
|
||||
|
||||
class Processor {
|
||||
constructor(plugins = []) {
|
||||
this.version = '8.4.32'
|
||||
this.version = '8.4.33'
|
||||
this.plugins = this.normalize(plugins)
|
||||
}
|
||||
|
||||
@@ -43,10 +43,10 @@ class Processor {
|
||||
|
||||
process(css, opts = {}) {
|
||||
if (
|
||||
this.plugins.length === 0 &&
|
||||
typeof opts.parser === 'undefined' &&
|
||||
typeof opts.stringifier === 'undefined' &&
|
||||
typeof opts.syntax === 'undefined'
|
||||
!this.plugins.length &&
|
||||
!opts.parser &&
|
||||
!opts.stringifier &&
|
||||
!opts.syntax
|
||||
) {
|
||||
return new NoWorkResult(this, css, opts)
|
||||
} else {
|
||||
|
||||
2
node_modules/postcss/package.json
generated
vendored
2
node_modules/postcss/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "postcss",
|
||||
"version": "8.4.32",
|
||||
"version": "8.4.33",
|
||||
"description": "Tool for transforming styles with JS plugins",
|
||||
"engines": {
|
||||
"node": "^10 || ^12 || >=14"
|
||||
|
||||
Reference in New Issue
Block a user