Rollup plugin for Vue 2.0 components that precompiles templates using vue-template-compiler and transforms .vue files into JavaScript. Version 0.8.1 is the stable release. The plugin is not actively maintained and is a subset of rollup-plugin-vue, which also supports Vue 2 and is better maintained. It requires additional plugins for handling CSS imports and transpilation. Supports ES6 transpilation via rollup-plugin-buble or rollup-plugin-babel. No support for hot-reload.
npm install rollup-plugin-vue2Verified import paths — ran on the pinned version, not inferred.
Shows a basic Rollup configuration using vue plugin with CSS and Bublé transpilation.
Replace with rollup-plugin-vue (supports Vue 2 and is better maintained).
Add rollup-plugin-css-only, rollup-plugin-postcss, or rollup-plugin-scss to your Rollup config.
Place vue() before buble() or babel() in the plugins array.
Use rollup-plugin-vue if hot-reload is needed.
Add vue() plugin to rollup.config.js plugins array.
Ensure vue() plugin is configured and imported correctly.