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