A lightweight plugin (v1.2.1) enabling JSX syntax in Vue 2 projects when using esbuild-loader in Webpack. It provides a custom JSX factory function that transforms JSX into Vue 2 createElement calls. Key differentiator: allows esbuild-based bundling for Vue 2, which is faster than Babel. Released as-needed; no active development cycle. Requires manual Webpack configuration: set jsxFactory to 'vue2JsxEsbuild' and use ProvidePlugin to inject the default export. Note: not compatible with Vue 3 or other JSX runtimes, and no type definitions included.
npm install vue2-jsx-esbuildNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures esbuild-loader to use vue2JsxEsbuild as the JSX factory and injects the function via ProvidePlugin.
Install @types/vue2-jsx-esbuild or declare a module in a .d.ts file: declare module 'vue2-jsx-esbuild';
Use ['vue2-jsx-esbuild', 'default'] instead of just 'vue2-jsx-esbuild'.
Ensure jsxFactory: 'vue2JsxEsbuild' matches the ProvidePlugin variable name.
Ensure jsxFactory in esbuild options is exactly 'vue2JsxEsbuild' and ProvidePlugin uses the same name as key.
Use ProvidePlugin with array syntax: ['vue2-jsx-esbuild', 'default'].
No dependency data recorded yet.