An open API service indexing awesome lists of open source software.

https://github.com/unplugin/unplugin-solid

🚀 Unplugin for Solid.js
https://github.com/unplugin/unplugin-solid

esbuilld rollup rspack solid solidjs unplugin vite webpack

Last synced: 8 months ago
JSON representation

🚀 Unplugin for Solid.js

Awesome Lists containing this project

README

          

# unplugin-solid

[![NPM version](https://img.shields.io/npm/v/unplugin-solid?color=a1b858&label=)](https://www.npmjs.com/package/unplugin-solid)

## 📦 Installation

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

## 🚀 Usage

Vite

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

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


Rollup

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

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


Webpack

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


esbuild

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

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


Astro

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

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


## 📝 License

[MIT](./LICENSE). Made with ❤️ by [Ray](https://github.com/so1ve)