A virtual DOM-based template engine compiler for Vdt.js, version 3.0.46. It compiles Vdt template syntax (JSX-like with directives) into JavaScript for both server-side and client-side rendering. The package is part of the Vdt ecosystem and is used alongside the `vdt` runtime. It supports template inheritance, includes, macros, and provides fast updates via virtual DOM. The library is primarily used with the Intact MVVM framework. Releases follow npm versioning with recent updates. Key differentiators include small bundle size (~13KB gzipped including live compilation) and compatibility with modern build tools like webpack via vdt-loader.
npm install vdt-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compiles a VDT template string and renders it into the DOM with reactive updates.
Use named imports like `import { compile } from 'vdt-compiler'` instead of `require('vdt-compiler')()`.Set `target: 'es2015'` or higher to avoid deprecated ES5 output.
Ensure `import Vdt from 'vdt'` is available when executing the compiled output.
Update templates to use curly braces for directive values, e.g., `v-for={items}`.Run `npm install vdt-compiler` and ensure import path is correct.
Use `import { compile } from 'vdt-compiler'` or if using require: `const { compile } = require('vdt-compiler')`.Add `import Vdt from 'vdt'` at the top of the file.
Add `vdt-loader` to webpack config: `{ test: /\.vdt$/, use: 'vdt-loader' }`.