@wxt-dev/module-solid
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

@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:

  1. Adds vite-plugin-solid to and sets build.target: esnext in the vite config
  2. 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: {
      // ...
    },
  },
});

Readme

Keywords

Package Sidebar

Install

npm i @wxt-dev/module-solid

Weekly Downloads

430

Version

1.1.3

License

MIT

Unpacked Size

5.91 kB

Total Files

8

Last publish

Collaborators

  • _aklinker1