@swc/plugin-styled-jsx 7.0.1 → 7.0.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @swc/plugin-styled-jsx
2
2
 
3
+ ## 7.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 31e3254: build: Update `swc_core` to `v19.0.0`
8
+
3
9
  ## 7.0.1
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  # @swc/plugin-styled-jsx
4
4
 
5
+ ## 7.0.2
6
+
7
+ ### Patch Changes
8
+
9
+ - 31e3254: build: Update `swc_core` to `v19.0.0`
10
+
5
11
  ## 7.0.1
6
12
 
7
13
  ### Patch Changes
@@ -982,6 +982,22 @@ export { _class as default };
982
982
  "
983
983
  `;
984
984
 
985
+ exports[`Should load swc-confidential wasm plugin correctly > Should transform legacy-nesting correctly 1`] = `
986
+ "import _JSXStyle from "styled-jsx/style";
987
+ export default (()=>/*#__PURE__*/ React.createElement("div", {
988
+ className: "jsx-3b0234e9651851cb"
989
+ }, /*#__PURE__*/ React.createElement("p", {
990
+ className: "jsx-3b0234e9651851cb"
991
+ }, "test"), /*#__PURE__*/ React.createElement("p", {
992
+ className: "jsx-3b0234e9651851cb"
993
+ }, "woot"), /*#__PURE__*/ React.createElement("p", {
994
+ className: "jsx-3b0234e9651851cb"
995
+ }, "woot"), /*#__PURE__*/ React.createElement(_JSXStyle, {
996
+ id: "3b0234e9651851cb"
997
+ }, ".container.jsx-3b0234e9651851cb{color:blue;padding:3rem}.container.jsx-3b0234e9651851cb .inner.jsx-3b0234e9651851cb{color:yellow}")));
998
+ "
999
+ `;
1000
+
985
1001
  exports[`Should load swc-confidential wasm plugin correctly > Should transform mixed-global-scoped correctly 1`] = `
986
1002
  "import _JSXStyle from "styled-jsx/style";
987
1003
  const Test = ()=>/*#__PURE__*/ React.createElement(_JSXStyle, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/plugin-styled-jsx",
3
- "version": "7.0.1",
3
+ "version": "7.0.2",
4
4
  "description": "SWC plugin for styled-jsx",
5
5
  "main": "swc_plugin_styled_jsx.wasm",
6
6
  "homepage": "https://swc.rs",
@@ -19,5 +19,9 @@
19
19
  "dependencies": {
20
20
  "@swc/counter": "^0.1.3"
21
21
  },
22
- "scripts": {}
22
+ "scripts": {
23
+ "build": "cargo build --release -p swc_plugin_styled_jsx --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/release/swc_plugin_styled_jsx.wasm .",
24
+ "build:debug": "cargo build -p swc_plugin_styled_jsx --target wasm32-wasip1 && cp ../../target/wasm32-wasip1/debug/swc_plugin_styled_jsx.wasm .",
25
+ "test": "pnpm run build:debug && vitest run --testTimeout=0"
26
+ }
23
27
  }
Binary file