Skip to main content
Svelte template preview

Create the project

npx extension@latest create my-extension --template=svelte

What you get

Compile-time UI with single-file .svelte components and a minimal runtime footprint. Ideal for content scripts and popups where every kilobyte counts. The template includes the build configuration needed for HMR-friendly Svelte authoring inside an extension context.

Source

Browse the full source on GitHub: extension-js/examples/svelte.