b5235ed4f0
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Aaron <aaronklinker1@gmail.com>
@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-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: {
// ...
},
},
});