@swc/plugin-styled-jsx 6.0.4 → 6.3.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 +18 -0
- package/README.md +18 -0
- package/package.json +1 -1
- package/src/lib.rs +5 -5
- package/swc_plugin_styled_jsx.wasm +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @swc/plugin-styled-jsx
|
|
2
2
|
|
|
3
|
+
## 6.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4e7336c: Remove needless allocations
|
|
8
|
+
|
|
9
|
+
## 6.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 54b4a1a: Remove needless allocations
|
|
14
|
+
|
|
15
|
+
## 6.1.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- 05a2458: Improve performance greatly
|
|
20
|
+
|
|
3
21
|
## 6.0.4
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
# @swc/plugin-styled-jsx
|
|
4
4
|
|
|
5
|
+
## 6.3.0
|
|
6
|
+
|
|
7
|
+
### Minor Changes
|
|
8
|
+
|
|
9
|
+
- 4e7336c: Remove needless allocations
|
|
10
|
+
|
|
11
|
+
## 6.2.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- 54b4a1a: Remove needless allocations
|
|
16
|
+
|
|
17
|
+
## 6.1.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- 05a2458: Improve performance greatly
|
|
22
|
+
|
|
5
23
|
## 6.0.4
|
|
6
24
|
|
|
7
25
|
### Patch Changes
|
package/package.json
CHANGED
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::
|
|
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.
|
|
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
|