@parcel/transformer-css 2.0.0-nightly.1253 → 2.0.0-nightly.1255

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.
@@ -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.1253+1e1d01df1",
3
+ "version": "2.0.0-nightly.1255+359f6bbba",
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.1251+1e1d01df1"
20
+ "parcel": "2.0.0-nightly.1253+359f6bbba"
21
21
  },
22
22
  "dependencies": {
23
- "@parcel/diagnostic": "2.0.0-nightly.1253+1e1d01df1",
24
- "@parcel/plugin": "2.0.0-nightly.1253+1e1d01df1",
23
+ "@parcel/diagnostic": "2.0.0-nightly.1255+359f6bbba",
24
+ "@parcel/plugin": "2.0.0-nightly.1255+359f6bbba",
25
25
  "@parcel/source-map": "^2.1.1",
26
- "@parcel/utils": "2.0.0-nightly.1253+1e1d01df1",
26
+ "@parcel/utils": "2.0.0-nightly.1255+359f6bbba",
27
27
  "browserslist": "^4.6.6",
28
28
  "lightningcss": "^1.16.1",
29
29
  "nullthrows": "^1.1.1"
30
30
  },
31
- "gitHead": "1e1d01df1638bc534785eda86116a6696b0d0cc5"
31
+ "gitHead": "359f6bbba0739c3872ee82ea4984c93adaf4da47"
32
32
  }
@@ -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
  ]),