@wxt-dev/module-svelte
v1.0.1
Published
WXT module to enable Svelte support
Downloads
317
Readme
@wxt-dev/module-svelte
Enables the use of Svelte in your web extension, in HTML pages and content scripts.
This plugin makes a few changes:
- Adds
@sveltejs/vite-plugin-svelte
to vite - Adds the
svelte
preset to auto-imports
Usage
pnpm i svelte
pnpm i -D @wxt-dev/module-svelte
Then add the module to your config:
// wxt.config.ts
export default defineConfig({
// Required
modules: ['@wxt-dev/module-svelte'],
// Optional: Pass options to the module:
svelte: {
vite: {
// ...
},
},
});