1.1.3 • Published 1 year ago
@wxt-dev/module-solid v1.1.3
@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-solidto and setsbuild.target: esnextin the vite config - Adds the
solid-jspreset to auto-imports
Usage
pnpm i solid-js
pnpm i -D @wxt-dev/module-solidThen 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: {
// ...
},
},
});