Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vuejs/rollup-plugin-vue
Roll .vue files
https://github.com/vuejs/rollup-plugin-vue
rollup vue
Last synced: about 1 month ago
JSON representation
Roll .vue files
- Host: GitHub
- URL: https://github.com/vuejs/rollup-plugin-vue
- Owner: vuejs
- License: mit
- Archived: true
- Created: 2016-01-24T05:46:15.000Z (almost 9 years ago)
- Default Branch: next
- Last Pushed: 2022-01-18T14:38:11.000Z (almost 3 years ago)
- Last Synced: 2024-04-05T13:38:07.774Z (7 months ago)
- Topics: rollup, vue
- Language: TypeScript
- Homepage: https://vuejs.github.io/rollup-plugin-vue
- Size: 16.4 MB
- Stars: 848
- Watchers: 32
- Forks: 148
- Open Issues: 70
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome - vue - Compile Vue components. (Plugins / Frameworks)
- awesome - vuejs/rollup-plugin-vue - Roll .vue files (TypeScript)
README
# Archived
This is no longer maintained. Use [Vite](https://vitejs.dev/) and [`@vitejs/plugin-vue`](https://github.com/vitejs/vite/tree/main/packages/plugin-vue) instead.
---
# 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
}
```