# rollup-plugin-vue

> > Roll Vue 3 SFCs with Rollup.

Latest version **6.0.0** (published 2020-11-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install rollup-plugin-vue
pnpm add rollup-plugin-vue
yarn add rollup-plugin-vue
bun add rollup-plugin-vue
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 6.0.0 |
| Published | 2020-11-25 |
| First published | 2016-01-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 38.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Rahul Kadyan |
| Maintainers | yyx990803, znck |

## Links

- npm: https://www.npmjs.com/package/rollup-plugin-vue
- npm.io page: https://npm.io/package/rollup-plugin-vue

## Dependencies (3)

- [debug](https://npm.io/package/debug.md) ^4.1.1
- [hash-sum](https://npm.io/package/hash-sum.md) ^2.0.0
- [rollup-pluginutils](https://npm.io/package/rollup-pluginutils.md) ^2.8.2

## Recent versions

- 6.0.0 (latest) — 2020-11-25
- 6.0.0-beta.10 (next) — 2020-07-30
- 6.0.0-beta.11 — 2020-11-02
- 6.0.0-beta.9 — 2020-07-16
- 6.0.0-beta.8 — 2020-07-15
- 6.0.0-beta.7 — 2020-07-15
- 6.0.0-beta.6 — 2020-06-05
- 6.0.0-beta.5 — 2020-06-04
- 6.0.0-beta.4 — 2020-06-02
- 6.0.0-beta.3 — 2020-05-27
- 6.0.0-beta.2 — 2020-05-27
- 5.1.9 — 2020-05-22
- 5.1.8 — 2020-05-22
- 6.0.0-beta.1 — 2020-05-19
- 5.1.7 — 2020-05-11
- … 87 more at https://npm.io/package/rollup-plugin-vue/versions

## README

# rollup-plugin-vue@next

> Roll Vue 3 SFCs with Rollup.


``` js
import vuePlugin from 'rollup-plugin-vue'

export default {
  plugins: [
    vuePlugin(/* options */)
  ]
}
```

## Options

``` js
export interface Options {
  include: string | RegExp | (string | RegExp)[]
  exclude: string | RegExp | (string | RegExp)[]

  // use 'node' if compiling for SSR
  target: 'node' | 'browser'

  // if true, will attach __file to component even in production.
  // defaults to false.
  exposeFilename: boolean

  // if true, handle preprocessors directly instead of delegating to other
  // rollup plugins
  // defaults to false.
  preprocessStyles?: boolean
  cssModulesOptions?: {
    // https://github.com/css-modules/postcss-modules#usage
  }

  // these are simply passed on to @vue/compiler-sfc
  compiler
  compilerOptions
  transformAssetUrls
  preprocessCustomRequire
}
```

---
_Source: https://npm.io/package/rollup-plugin-vue · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
