A plugin and CLI wrapper for esbuild that enables Angular-like template syntax and file structure (e.g., .component.ts, .template.html, .styles.css) for Mithril projects, instead of JSX. Current stable version is 1.3.0. It transpiles Angular-style decorators (e.g., @Component) and HTML templates into Mithril's hyperscript. Released infrequently; no major breaking changes since initial. Differentiates from alternatives like babel-plugin-angular-jsx by leveraging esbuild's speed and native TypeScript support, and from Angular itself by targeting lightweight Mithril instead of the full Angular framework.
npm install esbuild-angular-jsxNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the plugin with esbuild's API, processing Angular-like syntax into Mithril.
Rename files to match expected patterns or customize via plugin options.
Switch to using the plugin with esbuild.build().
Manually implement Mithril equivalents for Angular features not supported.
Use only supported directives: *ngIf, *ngFor, (click), [(ngModel)] (partial).
Update code to call the default export: `const plugin = esbuildAngularJsx()`. For versions <1.3.0, use `const options = esbuildAngularJsx()` instead.
Ensure your component files are named with the .component.ts suffix and are included in the entry points.
Call the imported function: `const plugin = esbuildAngularJsx()`. If using TypeScript, ensure ESM import syntax.
Run `npm install --save-dev esbuild-angular-jsx` to install it as a dev dependency.