unplugin-solid-directive
v0.2.1
Published
unplugin for auto inject solid directives
Downloads
6
Readme
unplugin-solid-directive
Auto inject solid directives
quick start
Install it:
npm i unplugin-solid-directive
# or
yarn add unplugin-solid-directive
# or
pnpm add unplugin-solid-directive
// vite.config.ts
import Directive from 'unplugin-solid-directive/vite'
export default defineConfig({
plugins: [
Directive({ /* options */ }),
],
})
// rollup.config.js
import Directive from 'unplugin-solid-directive/rollup'
export default {
plugins: [
Directive({ /* options */ }),
// other plugins
],
}
// webpack.config.js
module.exports = {
/* ... */
plugins: [
require('unplugin-solid-directive/webpack')({ /* options */ }),
],
}
// esbuild.config.js
import { build } from 'esbuild'
build({
/* ... */
plugins: [require('unplugin-solid-directive/esbuild')()],
})
// rspack.config.js
module.exports = {
/* ... */
plugins: [
require('unplugin-solid-directive/rspack')({ /* options */ }),
],
}
options
the option descriptions are well-documented in jsdoc
or see in type.ts