@swc/plugin-styled-jsx 1.5.36 → 1.5.38
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/Cargo.toml +3 -3
- package/package.json +1 -1
- package/swc_plugin_styled_jsx.wasm +0 -0
- package/transform/Cargo.toml +4 -4
- package/transform/tests/errors/no-child/output.js +1 -1
- package/transform/tests/errors/two-children/output.js +1 -1
- package/transform/tests/errors/wrong-child-type/output.js +1 -1
- package/transform/tests/errors/wrong-jsx-expression-type/output.js +1 -1
- package/transform/tests/fixture/absent/output.js +3 -3
- package/transform/tests/fixture/component-attribute/output.js +1 -1
- package/transform/tests/fixture/different-jsx-ids/output.js +3 -3
- package/transform/tests/fixture/external-stylesheet-global/output.js +4 -4
- package/transform/tests/fixture/fragment/output.js +2 -2
- package/transform/tests/fixture/multiple-jsx/output.js +2 -2
package/Cargo.toml
CHANGED
|
@@ -16,7 +16,7 @@ custom_transform = ["swc_core/common_concurrent"]
|
|
|
16
16
|
[dependencies]
|
|
17
17
|
easy-error = "1.0.0"
|
|
18
18
|
styled_jsx = {version = "0.30.0", path = "./transform"}
|
|
19
|
-
swc_core = {version = "0.
|
|
19
|
+
swc_core = {version = "0.59.1", features = [
|
|
20
20
|
"common",
|
|
21
21
|
"ecma_ast",
|
|
22
22
|
"ecma_plugin_transform",
|
|
@@ -33,5 +33,5 @@ swc_core = {version = "0.56.0", features = [
|
|
|
33
33
|
tracing = {version = "0.1.37", features = ["release_max_level_off"]}
|
|
34
34
|
|
|
35
35
|
[dev-dependencies]
|
|
36
|
-
swc_core = {features = ["testing_transform"], version = "0.
|
|
37
|
-
testing = "0.31.
|
|
36
|
+
swc_core = {features = ["testing_transform"], version = "0.59.1"}
|
|
37
|
+
testing = "0.31.30"
|
package/package.json
CHANGED
|
Binary file
|
package/transform/Cargo.toml
CHANGED
|
@@ -4,7 +4,7 @@ description = "AST transforms visitor for styled-jsx"
|
|
|
4
4
|
edition = "2021"
|
|
5
5
|
license = "Apache-2.0"
|
|
6
6
|
name = "styled_jsx"
|
|
7
|
-
version = "0.30.
|
|
7
|
+
version = "0.30.2"
|
|
8
8
|
|
|
9
9
|
[features]
|
|
10
10
|
custom_transform = ["swc_core/common_concurrent"]
|
|
@@ -13,7 +13,7 @@ custom_transform = ["swc_core/common_concurrent"]
|
|
|
13
13
|
easy-error = "1.0.0"
|
|
14
14
|
tracing = "0.1.37"
|
|
15
15
|
|
|
16
|
-
swc_core = { version = "0.
|
|
16
|
+
swc_core = { version = "0.59.1", features = [
|
|
17
17
|
"common",
|
|
18
18
|
"ecma_ast",
|
|
19
19
|
"css_ast",
|
|
@@ -28,5 +28,5 @@ swc_core = { version = "0.56.0", features = [
|
|
|
28
28
|
] }
|
|
29
29
|
|
|
30
30
|
[dev-dependencies]
|
|
31
|
-
testing = "0.31.
|
|
32
|
-
swc_core = { features = ["testing_transform"], version = "0.
|
|
31
|
+
testing = "0.31.30"
|
|
32
|
+
swc_core = { features = ["testing_transform"], version = "0.59.1" }
|
|
@@ -15,10 +15,10 @@ const B = ()=><div className={"jsx-d1ed441bb35f699d"}>
|
|
|
15
15
|
<_JSXStyle id={"d1ed441bb35f699d"}>{`p.jsx-d1ed441bb35f699d{color:${otherColor}}`}</_JSXStyle>
|
|
16
16
|
|
|
17
17
|
</div>;
|
|
18
|
-
export default (()=><div
|
|
18
|
+
export default (()=><div>
|
|
19
19
|
|
|
20
|
-
<A
|
|
20
|
+
<A/>
|
|
21
21
|
|
|
22
|
-
<B
|
|
22
|
+
<B/>
|
|
23
23
|
|
|
24
24
|
</div>);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import _JSXStyle from "styled-jsx/style";
|
|
2
2
|
import styles, { foo as styles3 } from './styles';
|
|
3
3
|
const styles2 = require('./styles2');
|
|
4
|
-
export default (()=><div
|
|
4
|
+
export default (()=><div>
|
|
5
5
|
|
|
6
|
-
<p
|
|
6
|
+
<p>test</p>
|
|
7
7
|
|
|
8
|
-
<div
|
|
8
|
+
<div>woot</div>
|
|
9
9
|
|
|
10
|
-
<p
|
|
10
|
+
<p>woot</p>
|
|
11
11
|
|
|
12
12
|
<_JSXStyle id={styles2.__hash}>{styles2}</_JSXStyle>
|
|
13
13
|
|
|
@@ -10,7 +10,7 @@ export default (()=><>
|
|
|
10
10
|
|
|
11
11
|
<h3 id="head" className={"jsx-6dd5f97e085c0297"}>Title...</h3>
|
|
12
12
|
|
|
13
|
-
<React.Fragment
|
|
13
|
+
<React.Fragment>
|
|
14
14
|
|
|
15
15
|
<p className={"jsx-6dd5f97e085c0297"}>hello</p>
|
|
16
16
|
|
|
@@ -34,7 +34,7 @@ export default (()=><>
|
|
|
34
34
|
function Component1() {
|
|
35
35
|
return <>
|
|
36
36
|
|
|
37
|
-
<div
|
|
37
|
+
<div>test</div>
|
|
38
38
|
|
|
39
39
|
</>;
|
|
40
40
|
}
|
|
@@ -6,12 +6,12 @@ const Test1 = ()=><div className={"jsx-a9535d7d5f32c3c4"}>
|
|
|
6
6
|
|
|
7
7
|
<span {...attrs} data-test="test" className={"jsx-a9535d7d5f32c3c4" + " " + (attrs && attrs.className != null && attrs.className || "")}>test</span>
|
|
8
8
|
|
|
9
|
-
<Component
|
|
9
|
+
<Component/>
|
|
10
10
|
|
|
11
11
|
<_JSXStyle id={"a9535d7d5f32c3c4"}>{"span.jsx-a9535d7d5f32c3c4{color:red}"}</_JSXStyle>
|
|
12
12
|
|
|
13
13
|
</div>;
|
|
14
|
-
const Test2 = ()=><span
|
|
14
|
+
const Test2 = ()=><span>test</span>;
|
|
15
15
|
const Test3 = ()=><div className={"jsx-a9535d7d5f32c3c4"}>
|
|
16
16
|
|
|
17
17
|
<span className={"jsx-a9535d7d5f32c3c4"}>test</span>
|