Awesome
unplugin-starter
Starter template for unplugin.
<!-- Remove Start -->Template Usage
To use this template, clone it down using:
npx degit sxzz/unplugin-starter unplugin-my-plugin
And do a global replacement of unplugin-starter
with your plugin name.
Then you can start developing your unplugin 🔥
To run unit tests, run: pnpm run test
.
To release a new version, run: pnpm run release
.
Installation
npm i -D unplugin-starter
<details>
<summary>Vite</summary><br>
// vite.config.ts
import UnpluginStarter from 'unplugin-starter/vite'
export default defineConfig({
plugins: [UnpluginStarter()],
})
<br></details>
<details> <summary>Rollup</summary><br>// rollup.config.js
import UnpluginStarter from 'unplugin-starter/rollup'
export default {
plugins: [UnpluginStarter()],
}
<br></details>
<details> <summary>Rolldown</summary><br>// rolldown.config.js
import UnpluginStarter from 'unplugin-starter/rolldown'
export default {
plugins: [UnpluginStarter()],
}
<br></details>
<details> <summary>esbuild</summary><br>// esbuild.config.js
import { build } from 'esbuild'
build({
plugins: [require('unplugin-starter/esbuild')()],
})
<br></details>
<details> <summary>Webpack</summary><br>// webpack.config.js
module.exports = {
/* ... */
plugins: [require('unplugin-starter/webpack')()],
}
<br></details>