@swc/plugin-styled-jsx 6.1.0 → 6.4.0

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,23 @@
1
1
  # @swc/plugin-styled-jsx
2
2
 
3
+ ## 6.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 4c8b0e2: Update swc_core
8
+
9
+ ## 6.3.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 4e7336c: Remove needless allocations
14
+
15
+ ## 6.2.0
16
+
17
+ ### Minor Changes
18
+
19
+ - 54b4a1a: Remove needless allocations
20
+
3
21
  ## 6.1.0
4
22
 
5
23
  ### Minor Changes
package/README.md CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  # @swc/plugin-styled-jsx
4
4
 
5
+ ## 6.4.0
6
+
7
+ ### Minor Changes
8
+
9
+ - 4c8b0e2: Update swc_core
10
+
11
+ ## 6.3.0
12
+
13
+ ### Minor Changes
14
+
15
+ - 4e7336c: Remove needless allocations
16
+
17
+ ## 6.2.0
18
+
19
+ ### Minor Changes
20
+
21
+ - 54b4a1a: Remove needless allocations
22
+
5
23
  ## 6.1.0
6
24
 
7
25
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/plugin-styled-jsx",
3
- "version": "6.1.0",
3
+ "version": "6.4.0",
4
4
  "description": "SWC plugin for styled-jsx",
5
5
  "main": "swc_plugin_styled_jsx.wasm",
6
6
  "homepage": "https://swc.rs",
package/src/lib.rs CHANGED
@@ -4,7 +4,7 @@
4
4
  use styled_jsx::{visitor, visitor::Config};
5
5
  use swc_core::{
6
6
  common::{sync::Lrc, FileName, SourceMap},
7
- ecma::{ast::Program, visit::FoldWith},
7
+ ecma::ast::Program,
8
8
  plugin::{plugin_transform, proxies::TransformPluginProgramMetadata},
9
9
  };
10
10
 
@@ -20,10 +20,10 @@ fn styled_jsx_plugin(program: Program, data: TransformPluginProgramMetadata) ->
20
20
  // TODO(kdy1): This is wrong, but it does not use cm
21
21
  let cm = Lrc::new(SourceMap::default());
22
22
 
23
- program.fold_with(&mut visitor::styled_jsx(
23
+ program.apply(visitor::styled_jsx(
24
24
  cm,
25
- FileName::Anon,
26
- config,
27
- Default::default(),
25
+ &FileName::Anon,
26
+ &config,
27
+ &Default::default(),
28
28
  ))
29
29
  }
Binary file