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.
npm install rollup-plugin-vue-template-compilerVerified import paths — ran on the pinned version, not inferred.
Configures Rollup plugin to compile Vue 2 templates from .html files and import them as render functions.
Use vue3 compatible plugin like rollup-plugin-vue for Vue 3.
Consider rollup-plugin-vue or @vue/compiler-sfc for modern Vue projects.
npm install --save-dev vue-template-compiler@^2.0.0
Use rollup.config.mjs or run with --experimental-modules or transpile config via @rollup/plugin-babel.