svelte-bun

Svelte Bun

compile svelte component on the fly, without a bundler

sveltejs for bun

$ curl -fsSL https://bun.sh/install | bash
$ source ~/.bashrc
$ git clone --depth 1 https://github.com/terrywh/svelte-bun.git
$ cd svelte-bun
$ bun install
$ bun run start

Just in time Component (Using only svelte on bun), compile svelte component on the fly;

for Development environment only.

component

Add a component using .svelte as file extension, and import it.

see public/main.js and public/app.svelte

restful

Add a service using .js and export the handler, import it as the handler parameter of createRestfulServer().

see service/hello.js and sbin/server.js

Top categories

svelte logo

Want a Svelte site built?

Hire a Svelte developer
Loading Svelte Themes