Koa.js middleware for server-side transformation (SST) of solid-js TSX using Bun.
- Install Bun:
curl -fsSL https://bun.sh/install | bash.
- Install dependencies:
bun install
- Run "prepare":
bun run prepare
To serve any of the example apps, cd into the directory, then run bun run start
.
eg, to run the "hello-world" example app
cd ./apps/hello-world
bun run start
This workspace is setup like a monorepo, but only contains one "library" package (koa-middleware-sst-solid-tsx
), and "example" apps.
Bun's transpiler does not currently support solid-js, because lack of "jsx: preserve" (see this issue).
This middleware implements a workaround. Do not implement the workaround yourself.