An esbuild plugin for compiling template.js templates during bundling. Current stable version is 3.1.4. It integrates template.js with esbuild, allowing you to import .tmpl files and compile them into render functions. Requires @templatejs/runtime as a peer dependency. The plugin supports configurable delimiters and expression for accessing the runtime. It is part of the template.js ecosystem, providing a fast build step for template compilation compared to runtime-only approaches.
npm install esbuild-plugin-templatejsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures esbuild with templatejs plugin to compile .tmpl files during bundle.
Use named export if available, or check changelog.
Run npm install @templatejs/runtime
Use import syntax and ensure your project is configured for ESM.
npm install @templatejs/runtime
Use import templatejs from 'esbuild-plugin-templatejs'