You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
# Solid Register
2
2
3
-
Node loader for compiling JSX/TSX files using Solid's compiler.
3
+
Node loader for compiling JSX/TSX files using Solid's compiler. Uses [Node's Module Customization Hooks](https://nodejs.org/api/module.html#customization-hooks) to register the loader for `.jsx` and `.tsx` files.
4
+
5
+
Requires Node `>=20.6.0`.
4
6
5
7
## Usage
6
8
@@ -24,6 +26,11 @@ Also requires for the DOM api to be mocked with `jsdom` or similar.
This loader only handles the compilation of `.jsx`/`.tsx` files.\
32
+
For `.ts` files you can use [`--experimental-strip-types`](https://nodejs.org/docs/v22.15.0/api/typescript.html#type-stripping), [`tsx`](https://github.com/privatenumber/tsx) or [`ts-node`](https://www.npmjs.com/package/ts-node).
33
+
27
34
## Example
28
35
29
36
See the [tests](./tests) folder for a client/ssr code example\
0 commit comments