{"library":"rollup-plugin-vue-template-compiler","title":"rollup-plugin-vue-template-compiler","description":"Rollup plugin for compiling Vue.js 2.0 templates into render functions using vue-template-compiler. Version 1.0.3 is the latest stable release; no active development since 2017. It allows importing .html files as compiled template objects (render and staticRenderFns) with support for include/exclude patterns. Compared to alternative solutions like rollup-plugin-vue (which handles full SFC compilation) this plugin focuses solely on template compilation and works with plain HTML files.","language":"javascript","status":"maintenance","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-vue-template-compiler"],"cli":null},"imports":["import vueTemplateCompiler from 'rollup-plugin-vue-template-compiler'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport vueTemplateCompiler from 'rollup-plugin-vue-template-compiler';\nimport buble from 'rollup-plugin-buble';\n\nexport default {\n  input: 'src/main.js',\n  output: { file: 'dist/bundle.js', format: 'iife' },\n  plugins: [\n    vueTemplateCompiler({ include: '**/*.html' }),\n    buble()\n  ]\n};\n\n// main.js\nimport template from './template.html';\n\nconst App = {\n  render: template.render,\n  staticRenderFns: template.staticRenderFns,\n  mounted() { console.log('mounted'); }\n};\n\nnew Vue({\n  el: '#app',\n  render: h => h(App)\n});","lang":"javascript","description":"Configures Rollup plugin to compile Vue 2 templates from .html files and import them as render functions.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}