Skip to content

rspack-contrib/rsbuild-plugin-unplugin-vue

Repository files navigation

rsbuild-plugin-unplugin-vue

Rsbuild and Rslib plugin for unplugin-vue.

This plugin could be used with Rsbuild project as an alternative to @rsbuild/plugin-vue.

This plugin is recommended for projects using Rslib to build Vue components.

Caution

HMR is not supported with Rsbuild yet. Track the issue here. This plugin is mainly used for building Vue components with Rslib as of now.

npm version license downloads

Usage

Install:

npm add rsbuild-plugin-unplugin-vue -D

Add plugin to your rsbuild.config.ts:

// rsbuild.config.ts / rslib.config.ts
import { pluginUnpluginVue } from 'rsbuild-plugin-unplugin-vue'

export default {
  plugins: [pluginUnpluginVue()],
}

Options

unpluginVueOptions

Some description.

  • Type: import('unplugin-vue/api').Options
  • Default: undefined
  • Example:
pluginUnpluginVue({
  unpluginVueOptions: {
    include: ['**/*.vue'],
  },
})

License

MIT.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published