unplugin-kubb
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

unplugin-kubb

Kubb plugin for Vite, webpack, esbuild, Rollup, Nuxt, Astro and Rspack.

logo

npm version npm downloads Coverage License

Install

npm i -D unplugin-kubb @kubb/core
import kubb from 'unplugin-kubb/vite'

export default defineConfig({
  plugins: [
    kubb({/* options */}),
  ],
})
import kubb from 'unplugin-kubb/rollup'

export default {
  plugins: [
    kubb({/* options */}),
  ],
}
module.exports = {
  /* ... */
  plugins: [
    require('unplugin-kubb/webpack')({/* options */}),
  ],
}
export default defineNuxtConfig({
  modules: [
    ['unplugin-kubb/nuxt', {/* options */}],
  ],
})

This module works for both Nuxt 2 and Nuxt Vite

module.exports = {
  configureWebpack: {
    plugins: [
      require('unplugin-kubb/webpack')({/* options */}),
    ],
  },
}
import { build } from 'esbuild'
import kubb from 'unplugin-kubb/esbuild'

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

Options

config

Define the options for Kubb.

type Options = {
  config: UserConfig
}

Supporting Kubb

Kubb uses an MIT-licensed open source project with its ongoing development made possible entirely by the support of Sponsors. If you would like to become a sponsor, please consider:

My sponsors

Package Sidebar

Install

npm i unplugin-kubb

Weekly Downloads

255

Version

2.0.3

License

MIT

Unpacked Size

41.4 kB

Total Files

51

Last publish

Collaborators

  • stijnvanhulle