Skip to content

unplugin/unplugin-solid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

unplugin-solid

NPM version

πŸ“¦ Installation

$ npm install -D unplugin-solid
$ yarn add -D unplugin-solid
$ pnpm add -D unplugin-solid

πŸš€ Usage

Vite
// vite.config.ts
import Solid from "unplugin-solid/vite";

export default defineConfig({
  plugins: [
    Solid({
      /* options */
    }),
  ],
});


Rollup
// rollup.config.js
import Solid from "unplugin-solid/rollup";

export default {
  plugins: [
    Solid({
      /* options */
    }),
    // other plugins
  ],
};


Webpack
// webpack.config.js
module.exports = {
  /* ... */
  plugins: [
    require("unplugin-solid/webpack")({
      /* options */
    }),
  ],
};


esbuild
// esbuild.config.js
import { build } from "esbuild";

build({
  /* ... */
  plugins: [
    require("unplugin-solid/esbuild")({
      /* options */
    }),
  ],
});


Astro
// astro.config.mjs
import Solid from "unplugin-solid/astro";

export default defineConfig({
  integrations: [
    Solid({
      /* options */
    }),
  ],
});


πŸ“ License

MIT. Made with ❀️ by Ray