{"library":"rollup-plugin-vue2","title":"rollup-plugin-vue2","description":"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.","language":"javascript","status":"maintenance","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-vue2"],"cli":null},"imports":["import vue from 'rollup-plugin-vue2'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport vue from 'rollup-plugin-vue2';\nimport css from 'rollup-plugin-css-only';\nimport buble from 'rollup-plugin-buble';\nimport nodeResolve from 'rollup-plugin-node-resolve';\nimport commonjs from 'rollup-plugin-commonjs';\n\nexport default {\n  entry: 'src/main.js',\n  dest: 'dist/bundle.js',\n  sourcemaps: true,\n  plugins: [\n    vue(),\n    css(),\n    buble(),\n    nodeResolve({ browser: true, jsnext: true, main: true }),\n    commonjs()\n  ]\n};","lang":"javascript","description":"Shows a basic Rollup configuration using vue plugin with CSS and Bublé transpilation.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}