Registry / web-framework / esbuild-plugin-jsx

esbuild-plugin-jsx

JSON →
library1.0.1jsnpmunverified

esbuild-plugin-jsx v1.0.1 is a lightweight esbuild plugin that enables Vue 3 JSX/TSX support. It transpiles JSX syntax in Vue 3 single-file components using esbuild's built-in JSX transform with Vue's runtime. Unlike @vitejs/plugin-vue-jsx, this plugin is designed for standalone esbuild usage (e.g., in Rollup, Webpack, or CLI builds). It ships TypeScript declarations and has no dependencies. Release cadence is infrequent; current stable version is 1.0.1, unchanged since initial release. Key differentiator: minimal, zero-config integration for Vue 3 JSX in esbuild pipelines.

web-framework
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Package uses ESM default export; CJS require() will fail unless using dynamic import().

import vueJsx from 'esbuild-plugin-jsx'

VueJsxOptions is only exported as a TypeScript type; use type import to avoid runtime error.

import type { VueJsxOptions } from 'esbuild-plugin-jsx'

There is no named export; the plugin is a default function export.

import vueJsx from 'esbuild-plugin-jsx'

Demonstrates bundling a Vue 3 TSX file with esbuild using the JSX plugin.

import { build } from 'esbuild'; import vueJsx from 'esbuild-plugin-jsx'; await build({ entryPoints: ['app.tsx'], bundle: true, outfile: 'dist/app.js', plugins: [vueJsx()], });
Debug
Known footguns
gotchaRequires Vue 3 runtime to be present in the final bundle; the plugin only transpiles JSX, it does not polyfill Vue APIs.
gotchaPlugin does not handle .vue single-file components; it only processes .jsx/.tsx files.
gotchaJSX transform uses esbuild's built-in 'transform' API with jsx: 'automatic' and jsxImportSource: 'vue'. Custom JSX pragma is not supported.
deprecatedNo breaking changes or deprecations reported yet. Package has only one version.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
10 hits · last 30 days
gptbot
3
ahrefsbot
3
claudebot
3
bingbot
1
Resources