Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@parcel/transformer-css

Package Overview
Dependencies
Maintainers
0
Versions
898
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 2.0.0-dev.1712 to 2.0.0-dev.1781

29

lib/CSSTransformer.js

@@ -64,4 +64,4 @@ "use strict";

function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const {

@@ -102,3 +102,14 @@ transform,

// For example, with ESModule and CommonJS targets, only a single shared CSS bundle should be produced.
let env = asset.env;
let env = {
context: asset.env.context,
outputFormat: asset.env.outputFormat,
engines: asset.env.engines,
includeNodeModules: asset.env.includeNodeModules,
sourceType: asset.env.sourceType,
isLibrary: asset.env.isLibrary,
shouldOptimize: asset.env.shouldOptimize,
shouldScopeHoist: asset.env.shouldScopeHoist,
sourceMap: asset.env.sourceMap,
loc: asset.env.loc
};
asset.setEnvironment({

@@ -276,3 +287,4 @@ context: 'browser',

loc: null
}]])
}]]),
env
});

@@ -291,3 +303,4 @@ } else if (ref.type === 'global') {

specifierType: 'esm',
packageConditions: ['style']
packageConditions: ['style'],
env
});

@@ -311,3 +324,4 @@ }

loc: null
}]])
}]]),
env
});

@@ -347,3 +361,4 @@ }

loc: null
}]])
}]]),
env
});

@@ -350,0 +365,0 @@ asset.meta.hasReferences = true;

{
"name": "@parcel/transformer-css",
"version": "2.0.0-dev.1712+c6bc8e411",
"version": "2.0.0-dev.1781+61f02c2f3",
"license": "MIT",

@@ -20,9 +20,9 @@ "publishConfig": {

"node": ">= 16.0.0",
"parcel": "^2.0.0-dev.1710+c6bc8e411"
"parcel": "^2.0.0-dev.1779+61f02c2f3"
},
"dependencies": {
"@parcel/diagnostic": "2.0.0-dev.1712+c6bc8e411",
"@parcel/plugin": "2.0.0-dev.1712+c6bc8e411",
"@parcel/diagnostic": "2.0.0-dev.1781+61f02c2f3",
"@parcel/plugin": "2.0.0-dev.1781+61f02c2f3",
"@parcel/source-map": "^2.1.1",
"@parcel/utils": "2.0.0-dev.1712+c6bc8e411",
"@parcel/utils": "2.0.0-dev.1781+61f02c2f3",
"browserslist": "^4.6.6",

@@ -38,3 +38,3 @@ "lightningcss": "^1.22.1",

},
"gitHead": "c6bc8e41105247c437089ec3cb91e53f12ac5519"
"gitHead": "61f02c2f339013deb2ce38ff59edbe15d62e7cb5"
}

@@ -47,3 +47,15 @@ // @flow strict-local

// For example, with ESModule and CommonJS targets, only a single shared CSS bundle should be produced.
let env = asset.env;
let env = {
context: asset.env.context,
outputFormat: asset.env.outputFormat,
engines: asset.env.engines,
includeNodeModules: asset.env.includeNodeModules,
sourceType: asset.env.sourceType,
isLibrary: asset.env.isLibrary,
shouldOptimize: asset.env.shouldOptimize,
shouldScopeHoist: asset.env.shouldScopeHoist,
sourceMap: asset.env.sourceMap,
loc: asset.env.loc,
};
asset.setEnvironment({

@@ -272,2 +284,3 @@ context: 'browser',

]),
env,
});

@@ -289,2 +302,3 @@ } else if (ref.type === 'global') {

packageConditions: ['style'],
env,
});

@@ -308,2 +322,3 @@ }

]),
env,
});

@@ -345,2 +360,3 @@ }

]),
env,
});

@@ -347,0 +363,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc