unplugin-solid
v0.1.0
Published
[![NPM version](https://img.shields.io/npm/v/unplugin-solid?color=a1b858&label=)](https://www.npmjs.com/package/unplugin-solid)
Downloads
2
Maintainers
Readme
unplugin-solid
📦 Installation
$ npm install -D unplugin-solid
$ yarn add -D unplugin-solid
$ pnpm add -D unplugin-solid
🚀 Usage
// vite.config.ts
import Solid from "unplugin-solid/vite";
export default defineConfig({
plugins: [
Solid({
/* options */
}),
],
});
// rollup.config.js
import Solid from "unplugin-solid/rollup";
export default {
plugins: [
Solid({
/* options */
}),
// other plugins
],
};
// webpack.config.js
module.exports = {
/* ... */
plugins: [
require("unplugin-solid/webpack")({
/* options */
}),
],
};
// nuxt.config.ts
export default defineNuxtConfig({
modules: ["unplugin-solid/nuxt"],
});
// vue.config.js
module.exports = {
configureWebpack: {
plugins: [
require("unplugin-solid/webpack")({
/* options */
}),
],
},
};
// quasar.conf.js [Vite]
module.exports = {
vitePlugins: [
[
"unplugin-solid/vite",
{
/* options */
},
],
],
};
// quasar.conf.js [Webpack]
const SolidPlugin = require("unplugin-solid/webpack");
module.exports = {
build: {
chainWebpack(chain) {
chain.plugin("unplugin-solid").use(
SolidPlugin({
/* options */
}),
);
},
},
};
// esbuild.config.js
import { build } from "esbuild";
build({
/* ... */
plugins: [
require("unplugin-solid/esbuild")({
/* options */
}),
],
});
// astro.config.mjs
import Solid from "unplugin-solid/astro";
export default defineConfig({
integrations: [
Solid({
/* options */
}),
],
});