@atlaspack/transformer-js 6.0.2-dev-swc-4fc8a99f4.0 → 6.0.2-dev-native-compiled-test-712d92d32.0

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.
@@ -391,7 +391,9 @@ var _default = exports.default = new (_plugin().Transformer)({
391
391
  // @ts-expect-error TS2339
392
392
  conditions,
393
393
  // @ts-expect-error TS2339
394
- magic_comments
394
+ magic_comments,
395
+ // @ts-expect-error TS2339
396
+ compiled_css_rules
395
397
  } = await (_rust().transformAsync || _rust().transform)({
396
398
  filename: asset.filePath,
397
399
  code,
@@ -967,6 +969,7 @@ var _default = exports.default = new (_plugin().Transformer)({
967
969
  });
968
970
  }
969
971
  }
972
+ asset.setCompiledCssStyles(compiled_css_rules);
970
973
  asset.type = 'js';
971
974
  asset.setBuffer(compiledCode);
972
975
  if (map) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/transformer-js",
3
- "version": "6.0.2-dev-swc-4fc8a99f4.0",
3
+ "version": "6.0.2-dev-native-compiled-test-712d92d32.0",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -24,12 +24,12 @@
24
24
  "src"
25
25
  ],
26
26
  "dependencies": {
27
- "@atlaspack/diagnostic": "2.14.5-dev-swc-4fc8a99f4.0",
28
- "@atlaspack/feature-flags": "2.25.5-dev-swc-4fc8a99f4.0",
29
- "@atlaspack/plugin": "2.14.35-dev-swc-4fc8a99f4.0",
30
- "@atlaspack/rust": "3.8.3-dev-swc-4fc8a99f4.0",
31
- "@atlaspack/utils": "3.0.3-dev-swc-4fc8a99f4.0",
32
- "@atlaspack/workers": "2.14.35-dev-swc-4fc8a99f4.0",
27
+ "@atlaspack/diagnostic": "2.14.5-dev-native-compiled-test-712d92d32.0",
28
+ "@atlaspack/feature-flags": "2.25.5-dev-native-compiled-test-712d92d32.0",
29
+ "@atlaspack/plugin": "2.14.35-dev-native-compiled-test-712d92d32.0",
30
+ "@atlaspack/rust": "3.8.3-dev-native-compiled-test-712d92d32.0",
31
+ "@atlaspack/utils": "3.0.3-dev-native-compiled-test-712d92d32.0",
32
+ "@atlaspack/workers": "2.14.35-dev-native-compiled-test-712d92d32.0",
33
33
  "@parcel/source-map": "^2.1.1",
34
34
  "@swc/helpers": "^0.5.15",
35
35
  "browserslist": "^4.6.6",
@@ -41,5 +41,5 @@
41
41
  "@atlaspack/core": "2.25.1"
42
42
  },
43
43
  "type": "commonjs",
44
- "gitHead": "4fc8a99f4944cddf9c65ed0cb547cba40a83488c"
44
+ "gitHead": "712d92d323f25ef36c76ecd254b8f227fe518b89"
45
45
  }
@@ -475,6 +475,8 @@ export default new Transformer({
475
475
  conditions,
476
476
  // @ts-expect-error TS2339
477
477
  magic_comments,
478
+ // @ts-expect-error TS2339
479
+ compiled_css_rules,
478
480
  } = await (transformAsync || transform)({
479
481
  filename: asset.filePath,
480
482
  code,
@@ -1171,6 +1173,8 @@ export default new Transformer({
1171
1173
  }
1172
1174
  }
1173
1175
 
1176
+ asset.setCompiledCssStyles(compiled_css_rules);
1177
+
1174
1178
  asset.type = 'js';
1175
1179
  asset.setBuffer(compiledCode);
1176
1180