Compiler for Vue.js components in the OpenComponents (OC) ecosystem, enabling server-side rendering and client-side hydration of Vue.js templates. Current stable version is 4.0.1, with updates aligned to OC's release cadence. Key differentiator: integrates tightly with OC's component lifecycle and registry, supporting Vue.js 3.x via @vue/compiler-ssr. Unlike generic Vue builds, this package transforms components into OC-compatible format for server-side compilation.
npm install oc-template-vue-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and use the default compile function to compile a Vue.js template file.
Use async/await or .then() on the return value.
Replace `templateEngine: 'vue3'` with `vueVersion: 3`.
Run: npm install @vue/compiler-ssr
Upgrade to v4.0.1 or add custom type declarations.
Install @vue/compiler-ssr: npm install @vue/compiler-ssr
Use import compile from 'oc-template-vue-compiler'
Use const compile = require('oc-template-vue-compiler').default or set type: module in package.json