@tsrx/solid 0.0.22 → 0.0.23
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 -7
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.23",
|
|
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.23"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"solid-js": ">=1.8 || >=2.0.0-beta"
|
package/src/transform.js
CHANGED
|
@@ -1044,7 +1044,7 @@ function inject_solid_imports(program, transform_context) {
|
|
|
1044
1044
|
|
|
1045
1045
|
/**
|
|
1046
1046
|
* @param {any} node - walker-transformed Element whose `children` have
|
|
1047
|
-
* already had `
|
|
1047
|
+
* already had `Style` / `TSRXExpression` / nested `Element`
|
|
1048
1048
|
* walker rewrites applied.
|
|
1049
1049
|
* @param {TransformContext} transform_context
|
|
1050
1050
|
* @param {any[]} [pre_walk_children] - optional pre-walk children list
|
|
@@ -1053,9 +1053,7 @@ function inject_solid_imports(program, transform_context) {
|
|
|
1053
1053
|
* once detected we build the attribute from the original `Text.expression`.
|
|
1054
1054
|
* The factory's `Text` walker lowers `Text` → `JSXExpressionContainer`, so
|
|
1055
1055
|
* without these we'd miss the optimization. For rendering non-textContent
|
|
1056
|
-
* children we keep using `node.children` (walker-transformed)
|
|
1057
|
-
* `MemberExpression` rewrites on `StyleIdentifier` refs inside children
|
|
1058
|
-
* are preserved.
|
|
1056
|
+
* children we keep using `node.children` (walker-transformed).
|
|
1059
1057
|
* @returns {any}
|
|
1060
1058
|
*/
|
|
1061
1059
|
function to_jsx_element(node, transform_context, pre_walk_children) {
|
|
@@ -1154,9 +1152,7 @@ function to_jsx_element(node, transform_context, pre_walk_children) {
|
|
|
1154
1152
|
children = [];
|
|
1155
1153
|
selfClosing = true;
|
|
1156
1154
|
} else {
|
|
1157
|
-
// Use walker-transformed children
|
|
1158
|
-
// `StyleIdentifier` rewrites from the factory walker are preserved
|
|
1159
|
-
// in the emitted JSX.
|
|
1155
|
+
// Use walker-transformed children in the emitted JSX.
|
|
1160
1156
|
children = create_element_children(walked_children, transform_context);
|
|
1161
1157
|
}
|
|
1162
1158
|
|