Socket
Book a DemoInstallSign in
Socket

@parcel/transformer-css

Package Overview
Dependencies
Maintainers
1
Versions
934
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parcel/transformer-css - npm Package Compare versions

Comparing version

to
2.0.0-alpha.2

6

lib/CSSTransformer.js

@@ -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 @@ }

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.