solid-jsx-oxc 0.1.0-alpha.1 → 0.1.0-alpha.3
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/index.js +3 -13
- package/package.json +11 -3
- package/solid-jsx-oxc.darwin-arm64.node +0 -0
package/index.js
CHANGED
|
@@ -77,19 +77,9 @@ function transform(source, options = {}) {
|
|
|
77
77
|
|
|
78
78
|
const mergedOptions = { ...defaultOptions, ...options };
|
|
79
79
|
|
|
80
|
-
//
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
generate: mergedOptions.generate,
|
|
84
|
-
hydratable: mergedOptions.hydratable,
|
|
85
|
-
delegate_events: mergedOptions.delegateEvents,
|
|
86
|
-
wrap_conditionals: mergedOptions.wrapConditionals,
|
|
87
|
-
context_to_custom_elements: mergedOptions.contextToCustomElements,
|
|
88
|
-
filename: mergedOptions.filename,
|
|
89
|
-
source_map: mergedOptions.sourceMap,
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
return nativeBinding.transformJsx(source, rustOptions);
|
|
80
|
+
// NAPI-RS automatically converts camelCase (JS) to snake_case (Rust)
|
|
81
|
+
// so we can pass options directly without manual conversion
|
|
82
|
+
return nativeBinding.transformJsx(source, mergedOptions);
|
|
93
83
|
}
|
|
94
84
|
|
|
95
85
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solid-jsx-oxc",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.3",
|
|
4
4
|
"description": "OXC-based JSX compiler for SolidJS",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
],
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "https://github.com/ryansolid/
|
|
23
|
+
"url": "https://github.com/ryansolid/solid-jsx-oxc"
|
|
24
24
|
},
|
|
25
25
|
"keywords": [
|
|
26
26
|
"solid",
|
|
@@ -65,5 +65,13 @@
|
|
|
65
65
|
},
|
|
66
66
|
"engines": {
|
|
67
67
|
"node": ">= 18"
|
|
68
|
+
},
|
|
69
|
+
"optionalDependencies": {
|
|
70
|
+
"solid-jsx-oxc-darwin-x64": "0.1.0-alpha.3",
|
|
71
|
+
"solid-jsx-oxc-darwin-arm64": "0.1.0-alpha.3",
|
|
72
|
+
"solid-jsx-oxc-linux-x64-gnu": "0.1.0-alpha.3",
|
|
73
|
+
"solid-jsx-oxc-win32-x64-msvc": "0.1.0-alpha.3",
|
|
74
|
+
"solid-jsx-oxc-linux-arm64-gnu": "0.1.0-alpha.3",
|
|
75
|
+
"solid-jsx-oxc-win32-arm64-msvc": "0.1.0-alpha.3"
|
|
68
76
|
}
|
|
69
|
-
}
|
|
77
|
+
}
|
|
Binary file
|