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
- Host: GitHub
- URL: https://github.com/unplugin/unplugin-solid
- Owner: unplugin
- License: mit
- Created: 2023-06-08T17:12:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-13T23:51:38.000Z (8 months ago)
- Last Synced: 2025-02-14T04:05:13.260Z (8 months ago)
- Topics: esbuilld, rollup, rspack, solid, solidjs, unplugin, vite, webpack
- Language: TypeScript
- Homepage:
- Size: 511 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# unplugin-solid
[](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)