Comparing version 8.4.32 to 8.4.33
@@ -19,2 +19,3 @@ 'use strict' | ||
this.css = cssString | ||
this.originalCSS = cssString | ||
this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute | ||
@@ -78,3 +79,3 @@ | ||
} else if (this.css) { | ||
this.css = this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm, '') | ||
this.css = this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm, '') | ||
} | ||
@@ -281,3 +282,3 @@ } | ||
} 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) | ||
@@ -284,0 +285,0 @@ } |
@@ -40,2 +40,5 @@ 'use strict' | ||
} | ||
} else { | ||
map.clearAnnotation(); | ||
this.result.css = map.css; | ||
} | ||
@@ -42,0 +45,0 @@ } |
@@ -10,3 +10,3 @@ 'use strict' | ||
constructor(plugins = []) { | ||
this.version = '8.4.32' | ||
this.version = '8.4.33' | ||
this.plugins = this.normalize(plugins) | ||
@@ -47,6 +47,6 @@ } | ||
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 | ||
) { | ||
@@ -53,0 +53,0 @@ return new NoWorkResult(this, css, opts) |
{ | ||
"name": "postcss", | ||
"version": "8.4.32", | ||
"version": "8.4.33", | ||
"description": "Tool for transforming styles with JS plugins", | ||
@@ -5,0 +5,0 @@ "engines": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
196581
6749