@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 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.56.0", features = [
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.56.0"}
37
- testing = "0.31.29"
36
+ swc_core = {features = ["testing_transform"], version = "0.59.1"}
37
+ testing = "0.31.30"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/plugin-styled-jsx",
3
- "version": "1.5.36",
3
+ "version": "1.5.38",
4
4
  "description": "SWC plugin for styled-jsx",
5
5
  "main": "swc_plugin_styled_jsx.wasm",
6
6
  "scripts": {
Binary file
@@ -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.0"
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.56.0", features = [
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.29"
32
- swc_core = { features = ["testing_transform"], version = "0.56.0" }
31
+ testing = "0.31.30"
32
+ swc_core = { features = ["testing_transform"], version = "0.59.1" }
@@ -1,5 +1,5 @@
1
1
  import _JSXStyle from "styled-jsx/style";
2
- export default (()=><div >
2
+ export default (()=><div>
3
3
 
4
4
  <style jsx>
5
5
 
@@ -1,5 +1,5 @@
1
1
  import _JSXStyle from "styled-jsx/style";
2
- export default (()=><div >
2
+ export default (()=><div>
3
3
 
4
4
  <style jsx>
5
5
 
@@ -1,5 +1,5 @@
1
1
  import _JSXStyle from "styled-jsx/style";
2
- export default (()=><div >
2
+ export default (()=><div>
3
3
 
4
4
  <style jsx>
5
5
 
@@ -1,5 +1,5 @@
1
1
  import _JSXStyle from "styled-jsx/style";
2
- export default (()=><div >
2
+ export default (()=><div>
3
3
 
4
4
  <style jsx>
5
5
 
@@ -1,7 +1,7 @@
1
- const a = ()=><div >
1
+ const a = ()=><div>
2
2
 
3
- <p >hi</p>
3
+ <p>hi</p>
4
4
 
5
- <style >{'woot'}</style>
5
+ <style>{'woot'}</style>
6
6
 
7
7
  </div>;
@@ -3,7 +3,7 @@ const Test = ()=><div className={"jsx-a9535d7d5f32c3c4"}>
3
3
 
4
4
  <span className={"jsx-a9535d7d5f32c3c4"}>test</span>
5
5
 
6
- <Component />
6
+ <Component/>
7
7
 
8
8
  <_JSXStyle id={"a9535d7d5f32c3c4"}>{"span.jsx-a9535d7d5f32c3c4{color:red}"}</_JSXStyle>
9
9
 
@@ -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 >test</p>
6
+ <p>test</p>
7
7
 
8
- <div >woot</div>
8
+ <div>woot</div>
9
9
 
10
- <p >woot</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 >test</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 >test</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>