@tsrx/rspack-plugin-react 0.0.22 → 0.0.24

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Rspack plugin for @tsrx/react",
4
4
  "license": "MIT",
5
5
  "author": "Dominic Gannaway",
6
- "version": "0.0.22",
6
+ "version": "0.0.24",
7
7
  "type": "module",
8
8
  "publishConfig": {
9
9
  "access": "public"
@@ -20,7 +20,7 @@
20
20
  }
21
21
  },
22
22
  "dependencies": {
23
- "@tsrx/react": "0.1.19"
23
+ "@tsrx/react": "0.1.21"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "@rspack/core": ">=1.0.0"
package/src/css-loader.js CHANGED
@@ -17,7 +17,7 @@ export default function cssLoader(source) {
17
17
 
18
18
  try {
19
19
  const { css } = compile(source, resourcePath);
20
- callback(null, css?.code ?? '');
20
+ callback(null, css);
21
21
  } catch (/** @type {any} */ err) {
22
22
  callback(err);
23
23
  }
package/src/js-loader.js CHANGED
@@ -19,6 +19,7 @@ export default function jsLoader(source) {
19
19
  const { code, map, css } = compile(source, resourcePath);
20
20
 
21
21
  let output = code;
22
+ /** @type {typeof map | null} */
22
23
  let output_map = map;
23
24
  if (css) {
24
25
  const cssImport = `${resourcePath}?tsrx-css&lang.css`;