{"library":"nativescript-vue-template-compiler","title":"NativeScript-Vue Template Compiler","description":"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.","language":"javascript","status":"maintenance","last_verified":"Fri May 01","install":{"commands":["npm install nativescript-vue-template-compiler"],"cli":null},"imports":["import compiler from 'nativescript-vue-template-compiler'","import { compile } from 'nativescript-vue-template-compiler'","import { ssrCompile } from 'nativescript-vue-template-compiler'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import compiler from 'nativescript-vue-template-compiler';\nimport { compile } from 'nativescript-vue-template-compiler';\n\nconst template = `<Label text=\"Hello, NativeScript!\" />`;\nconst result = compile(template, { preserveWhitespace: false });\nconsole.log(result.render);\n// Use the render function with the NativeScript-Vue runtime\n","lang":"typescript","description":"Demonstrates how to import and use the template compiler to compile a simple NativeScript component template.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}