@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 +6 -0
- package/README.md +6 -0
- package/__tests__/__snapshots__/wasm.test.ts.snap +16 -0
- package/package.json +6 -2
- package/swc_plugin_styled_jsx.wasm +0 -0
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -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.
|
|
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
|