svelte-bun Svelte Themes

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

Loading Svelte Themes