How to use with Solid.js? #414
-
Looking through the code and commits I see at least partial support for Solid.js, but I am unable to get Steps taken: npx degit solidjs/templates/js my-app
cd my-app
rm pnpm-lock.yaml
bun install
bun dev
If the answer is that Solid just isn't supported yet, that's fine, but I got the impression from a few of the commits that there was at least initial work towards Solid support, I just can't figure out how to make it work. |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 7 replies
-
Have you succeed unbounding bun from react in your template? // Inserted by a transpiler (don't import it manually)
import {jsx as _jsx} from 'react/jsx-runtime'; |
Beta Was this translation helpful? Give feedback.
-
This should mostly depend on supporting Here it seems like it may be resolving to the server build (only for SSR) instead of the dev/browser build as
|
Beta Was this translation helpful? Give feedback.
-
I also tried different command combinations and interestingly, when I did
|
Beta Was this translation helpful? Give feedback.
-
For me, |
Beta Was this translation helpful? Give feedback.
-
Bun has a builtin SolidJS transform (per tweet from a few months ago) It's honestly like 25% implemented. More work needs to be done on it before it'll be good. You can try it with To configure Bun to use the SolidJS transform, Lines 910 to 914 in a1a0c18 This can be configured several different ways:
|
Beta Was this translation helpful? Give feedback.
-
How is the state of Solid JS usage with Bun, so far? Stable enough to give a try on a small project for production @Jarred-Sumner? |
Beta Was this translation helpful? Give feedback.
-
Until Bun has official and complete Solid.js support, you can use my plugin: https://github.com/DaniGuardiola/bun-plugin-solid |
Beta Was this translation helpful? Give feedback.
Bun has a builtin SolidJS transform (per tweet from a few months ago)
It's honestly like 25% implemented. More work needs to be done on it before it'll be good.
You can try it with
bun dev
, but make sure to runbun bun ./entry-point.js
To configure Bun to use the SolidJS transform,
jsxImportSource
should start withsolid-js
:bun/src/options.zig
Lines 910 to 914 in a1a0c18
This can be configured several differ…