An API-compatible fork of vue-template-compiler 2.7.x that includes postinstall hooks. It is used as a drop-in replacement to work around resolution issues in certain environments. Stable version is 2.7.21, matching Vue 2.7.x. Key differentiator: it allows overriding vue-template-compiler resolution via npm overrides or resolve.alias without breaking vue-loader compatibility. Ships TypeScript types.
npm install vue-template-compiler-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compiles a Vue template to a render function and mounts an app using the compiled render.
Use @vue/compiler-sfc for Vue 3 projects.
Use vue-template-compiler-plugin instead of vue-template-compiler to avoid resolution issues.
Add 'overrides': { 'vue-template-compiler': 'vue-template-compiler-plugin' } in package.jsonUse compileToFunctions instead of compile to get strict-mode compliant functions.
Add npm override: 'overrides': { 'vue-template-compiler': 'vue-template-compiler-plugin' }Add resolve.alias: { 'vue-template-compiler': 'vue-template-compiler-plugin' } in webpack configUse named import: import { compile } from 'vue-template-compiler-plugin'