Home

Awesome

unplugin-starter npm

Unit Test

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.

<!-- Remove End -->

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>
import { build } from 'esbuild'
import UnpluginStarter from 'unplugin-starter/esbuild'

build({
  plugins: [UnpluginStarter()],
})

<br></details>

<details> <summary>Webpack</summary><br>
// webpack.config.js
import UnpluginStarter from 'unplugin-starter/webpack'

export default {
  /* ... */
  plugins: [UnpluginStarter()],
}

<br></details>

<details> <summary>Rspack</summary><br>
// rspack.config.js
import UnpluginStarter from 'unplugin-starter/rspack'

export default {
  /* ... */
  plugins: [UnpluginStarter()],
}

<br></details>

Sponsors

<p align="center"> <a href="https://cdn.jsdelivr.net/gh/sxzz/sponsors/sponsors.svg"> <img src='https://cdn.jsdelivr.net/gh/sxzz/sponsors/sponsors.svg'/> </a> </p>

License

MIT License © 2024-PRESENT 三咲智子