@parcel/transformer-css
Advanced tools
Comparing version
@@ -65,5 +65,7 @@ "use strict"; | ||
}) { | ||
let ast = asset.ast; | ||
let ast = asset.ast; // Check for `hasDependencies` being false here as well, as it's possible | ||
// another transformer (such as PostCSSTransformer) has already parsed an | ||
// ast and CSSTransformer's parse was never called. | ||
if (!ast) { | ||
if (!ast || asset.meta.hasDependencies === false) { | ||
return [asset]; | ||
@@ -70,0 +72,0 @@ } |
{ | ||
"name": "@parcel/transformer-css", | ||
"version": "2.0.0-alpha.1.1", | ||
"version": "2.0.0-alpha.2", | ||
"license": "MIT", | ||
@@ -11,7 +11,7 @@ "repository": { | ||
"engines": { | ||
"node": ">= 8.0.0", | ||
"node": ">= 10.0.0", | ||
"parcel": "^2.0.0-alpha.1.1" | ||
}, | ||
"dependencies": { | ||
"@parcel/plugin": "^2.0.0-alpha.1.1", | ||
"@parcel/plugin": "^2.0.0-alpha.2", | ||
"postcss": "^7.0.5", | ||
@@ -21,3 +21,3 @@ "postcss-value-parser": "^3.3.1", | ||
}, | ||
"gitHead": "8f9c49c1c53753b1139501cc4090cd4b1ab5ac0b", | ||
"gitHead": "aa2619af0a50fecbab024d30521391814560337f", | ||
"publishConfig": { | ||
@@ -24,0 +24,0 @@ "access": "public" |
@@ -51,3 +51,6 @@ // @flow | ||
let ast = asset.ast; | ||
if (!ast) { | ||
// Check for `hasDependencies` being false here as well, as it's possible | ||
// another transformer (such as PostCSSTransformer) has already parsed an | ||
// ast and CSSTransformer's parse was never called. | ||
if (!ast || asset.meta.hasDependencies === false) { | ||
return [asset]; | ||
@@ -54,0 +57,0 @@ } |
10084
5.18%249
2.05%