Skip to content

Koa.js middleware for server-side transformation of solid-js TSX using Bun.

License

Notifications You must be signed in to change notification settings

vveisard/koa-middleware-sst-solid-tsx

Repository files navigation

koa-middleware-sst-solid-tsx

Koa.js middleware for server-side transformation (SST) of solid-js TSX using Bun.

Development

Prerequisites

  1. Install Bun:
curl -fsSL https://bun.sh/install | bash.

Setup

  1. Install dependencies:
bun install
  1. Run "prepare":
bun run prepare

Serve

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

Workspace

This workspace is setup like a monorepo, but only contains one "library" package (koa-middleware-sst-solid-tsx), and "example" apps.

Usage

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.

About

Koa.js middleware for server-side transformation of solid-js TSX using Bun.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published