File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
2- "name" : " solid-register" ,
2+ "name" : " solid-node- register" ,
33 "version" : " 1.0.0" ,
44 "description" : " Node loader for compiling JSX/TSX files using Solid's compiler." ,
55 "author" : " Damian Tarnawski <gthetarnav@gmail.com>" ,
1717 "types" : " ./dist/register_ssr.d.ts" ,
1818 "import" : " ./dist/register_ssr.js"
1919 },
20+ "./hooks" : {
21+ "types" : " ./dist/register_hooks.d.ts" ,
22+ "import" : " ./dist/register_hooks.js"
23+ },
2024 "./ssr" : {
2125 "types" : " ./dist/register_ssr.d.ts" ,
2226 "import" : " ./dist/register_ssr.js"
2327 },
24- "./client" : {
28+ "./client" : {
2529 "types" : " ./dist/register_client.d.ts" ,
2630 "import" : " ./dist/register_client.js"
2731 }
28- },
32+ },
2933 "scripts" : {
30- "test:ssr" : " node --experimental-strip-types --import solid-register --test tests/ssr.test.tsx" ,
31- "test:client" : " node --experimental-strip-types --conditions=browser --import solid-register/client --test tests/client.test.tsx" ,
34+ "test:ssr" : " node --experimental-strip-types --import solid-node- register --test tests/ssr.test.tsx" ,
35+ "test:client" : " node --experimental-strip-types --conditions=browser --import solid-node- register/client --test tests/client.test.tsx" ,
3236 "build" : " tsc --build" ,
3337 "prepublishOnly" : " pnpm run build"
3438 },
Original file line number Diff line number Diff line change @@ -9,21 +9,21 @@ Requires Node `>=20.6.0`.
99Install the loader
1010
1111``` bash
12- npm i solid-register # or pnpm, yarn, etc.
12+ npm i solid-node- register # or pnpm, yarn, etc.
1313```
1414
1515Run jsx/tsx files in SSR mode
1616
1717``` bash
18- node --import=solid-register ./index.tsx
18+ node --import=solid-node- register ./index.tsx
1919```
2020
2121Run jsx/tsx files in client mode.\
2222Requires a browser condition to import the browser solid runtime.\
2323Also requires for the DOM api to be mocked with ` jsdom ` or similar.
2424
2525``` bash
26- node --conditions=browser --import=solid-register/client ./index.tsx
26+ node --conditions=browser --import=solid-node- register/client ./index.tsx
2727```
2828
2929## TypeScript
You can’t perform that action at this time.
0 commit comments