An esbuild plugin that integrates the Twiggle JSX transformation, enabling reactive JSX syntax in your build pipeline. Current stable version is 1.6.9. It ships with TypeScript types, supports both ESM and CommonJS, and is actively maintained. Key differentiators: focuses specifically on Twiggle's reactive model, lightweight, and seamless esbuild integration.
npm install esbuild-plugin-twiggleNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic esbuild setup with the Twiggle plugin to transform JSX files.
Update your project to use ESM: set 'type': 'module' in package.json or rename files to .mjs.
Verify your esbuild version with 'npm list esbuild' and upgrade if needed: npm install esbuild@latest
Set 'jsx': 'react-jsx' in tsconfig.json compilerOptions.
Run npm install esbuild-plugin-twiggle
Use import twigglePlugin from 'esbuild-plugin-twiggle' or const twigglePlugin = require('esbuild-plugin-twiggle').default;