transform a svelte library into a single, neatly packaged executable.
pnpm i -D svelte-adapter-executable
You need to install one of the three supported adapters:
@sveltejs/adapter-node
for @yao-pkg/pkg, nexe, or SEA support.@svelte-adapter-deno
for deno compile support.@svelte-adapter-bun
for bun build support.Then, import the adapter as so:
// where sea can also be bun, deno, nexe, or yaopkg.
import adapter from 'svelte-adapter-executable/sea';