@parcel/transformer-css 2.0.0-nightly.1253 → 2.0.0-nightly.1254
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/CSSTransformer.js +4 -1
- package/package.json +6 -6
- package/src/CSSTransformer.js +3 -0
package/lib/CSSTransformer.js
CHANGED
|
@@ -226,6 +226,7 @@ var _default = new (_plugin().Transformer)({
|
|
|
226
226
|
specifier: dep.url,
|
|
227
227
|
specifierType: 'url',
|
|
228
228
|
loc,
|
|
229
|
+
packageConditions: ['style'],
|
|
229
230
|
meta: {
|
|
230
231
|
// For the glob resolver to distinguish between `@import` and other URL dependencies.
|
|
231
232
|
isCSSImport: true,
|
|
@@ -287,7 +288,8 @@ var _default = new (_plugin().Transformer)({
|
|
|
287
288
|
dependencies.set(ref.specifier, d);
|
|
288
289
|
asset.addDependency({
|
|
289
290
|
specifier: ref.specifier,
|
|
290
|
-
specifierType: 'esm'
|
|
291
|
+
specifierType: 'esm',
|
|
292
|
+
packageConditions: ['style']
|
|
291
293
|
});
|
|
292
294
|
}
|
|
293
295
|
|
|
@@ -332,6 +334,7 @@ var _default = new (_plugin().Transformer)({
|
|
|
332
334
|
asset.addDependency({
|
|
333
335
|
specifier: reference.specifier,
|
|
334
336
|
specifierType: 'esm',
|
|
337
|
+
packageConditions: ['style'],
|
|
335
338
|
symbols: new Map([[reference.name, {
|
|
336
339
|
local: symbol,
|
|
337
340
|
isWeak: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parcel/transformer-css",
|
|
3
|
-
"version": "2.0.0-nightly.
|
|
3
|
+
"version": "2.0.0-nightly.1254+19bc122fa",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"source": "src/CSSTransformer.js",
|
|
18
18
|
"engines": {
|
|
19
19
|
"node": ">= 12.0.0",
|
|
20
|
-
"parcel": "2.0.0-nightly.
|
|
20
|
+
"parcel": "2.0.0-nightly.1252+19bc122fa"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@parcel/diagnostic": "2.0.0-nightly.
|
|
24
|
-
"@parcel/plugin": "2.0.0-nightly.
|
|
23
|
+
"@parcel/diagnostic": "2.0.0-nightly.1254+19bc122fa",
|
|
24
|
+
"@parcel/plugin": "2.0.0-nightly.1254+19bc122fa",
|
|
25
25
|
"@parcel/source-map": "^2.1.1",
|
|
26
|
-
"@parcel/utils": "2.0.0-nightly.
|
|
26
|
+
"@parcel/utils": "2.0.0-nightly.1254+19bc122fa",
|
|
27
27
|
"browserslist": "^4.6.6",
|
|
28
28
|
"lightningcss": "^1.16.1",
|
|
29
29
|
"nullthrows": "^1.1.1"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "19bc122fa6558af62e8e730ffc3b07c60e381120"
|
|
32
32
|
}
|
package/src/CSSTransformer.js
CHANGED
|
@@ -156,6 +156,7 @@ export default (new Transformer({
|
|
|
156
156
|
specifier: dep.url,
|
|
157
157
|
specifierType: 'url',
|
|
158
158
|
loc,
|
|
159
|
+
packageConditions: ['style'],
|
|
159
160
|
meta: {
|
|
160
161
|
// For the glob resolver to distinguish between `@import` and other URL dependencies.
|
|
161
162
|
isCSSImport: true,
|
|
@@ -225,6 +226,7 @@ export default (new Transformer({
|
|
|
225
226
|
asset.addDependency({
|
|
226
227
|
specifier: ref.specifier,
|
|
227
228
|
specifierType: 'esm',
|
|
229
|
+
packageConditions: ['style'],
|
|
228
230
|
});
|
|
229
231
|
}
|
|
230
232
|
s += '${' + `${d}[${JSON.stringify(ref.name)}]` + '}';
|
|
@@ -268,6 +270,7 @@ export default (new Transformer({
|
|
|
268
270
|
asset.addDependency({
|
|
269
271
|
specifier: reference.specifier,
|
|
270
272
|
specifierType: 'esm',
|
|
273
|
+
packageConditions: ['style'],
|
|
271
274
|
symbols: new Map([
|
|
272
275
|
[reference.name, {local: symbol, isWeak: false, loc: null}],
|
|
273
276
|
]),
|