@tsrx/solid 0.0.21 → 0.0.22
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/package.json +2 -2
- package/src/transform.js +3 -6
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Solid compiler built on @tsrx/core",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Dominic Gannaway",
|
|
6
|
-
"version": "0.0.
|
|
6
|
+
"version": "0.0.22",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"publishConfig": {
|
|
9
9
|
"access": "public"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"esrap": "^2.1.0",
|
|
24
24
|
"zimmerframe": "^1.1.2",
|
|
25
|
-
"@tsrx/core": "0.0.
|
|
25
|
+
"@tsrx/core": "0.0.22"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"solid-js": ">=1.8 || >=2.0.0-beta"
|
package/src/transform.js
CHANGED
|
@@ -31,6 +31,8 @@ import {
|
|
|
31
31
|
to_text_expression,
|
|
32
32
|
} from '@tsrx/core';
|
|
33
33
|
|
|
34
|
+
import { builders as b } from '@tsrx/core';
|
|
35
|
+
|
|
34
36
|
/**
|
|
35
37
|
* Solid extends the shared `JsxTransformContext` with `needs_*` flags that
|
|
36
38
|
* track which Solid runtime primitives (`Show`, `For`, `Switch`, `Match`,
|
|
@@ -1159,12 +1161,7 @@ function to_jsx_element(node, transform_context, pre_walk_children) {
|
|
|
1159
1161
|
}
|
|
1160
1162
|
|
|
1161
1163
|
const openingElement = set_loc(
|
|
1162
|
-
|
|
1163
|
-
type: 'JSXOpeningElement',
|
|
1164
|
-
name,
|
|
1165
|
-
attributes,
|
|
1166
|
-
selfClosing,
|
|
1167
|
-
}),
|
|
1164
|
+
b.jsx_opening_element(name, attributes, selfClosing, node.openingElement?.typeArguments),
|
|
1168
1165
|
node.openingElement || node,
|
|
1169
1166
|
);
|
|
1170
1167
|
|