Template compiler for NativeScript-Vue, auto-generated from the platform/nativescript/compiler source. Current stable version is 2.9.3 (maintenance) and 3.0.2 (latest). The package is used to compile Vue single-file component templates into render functions optimized for NativeScript's native UI rendering. It is a required dependency for building NativeScript-Vue applications and is automatically included when using the nativescript-vue package. The 3.x series adds support for scoped styles and other improvements but introduces breaking changes if upgrading from 2.x due to Vue version differences. Release cadence is irregular, with major versions aligned with NativeScript and Vue updates.
npm install nativescript-vue-template-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to import and use the template compiler to compile a simple NativeScript component template.
Upgrade to Vue 3 and rewrite templates if relying on v2-specific render function format.
Do not modify the package; contribute changes to the main nativescript-vue repository.
Install both peer dependencies: `npm install nativescript-vue vue-template-compiler`
Replace `import compiler from '...'` with `import { compile } from '...'` (or other named exports).Run `npm install nativescript-vue-template-compiler` (and its peer dependencies).
Use `import compiler from '...'` then call `compiler.compile(template, options)`.
Run `npm install vue-template-compiler`.