A Babel plugin that transforms JSX into a generic intermediate representation (JSX-IR) rather than React.createElement calls. Version 1.2.0 is the current stable release with no active development since 2017. The plugin outputs plain objects with tag, props, and children fields, making it renderer-agnostic. Key differentiators: it does not require React, supports scope capture for variable resolution, and can be combined with custom renderers from the jsx-ir ecosystem.
npm install babel-plugin-jsxVerified import paths — ran on the pinned version, not inferred.
Transforms JSX code into JSX-IR object using the plugin generator with captureScope disabled.
Use 'exclude' option or upgrade to Babel 7+ and use 'overrides'
Upgrade to a Babel 7 compatible plugin or use Babel 6.
Set throwOnMissing: false to defer to runtime error or ensure all JSX tags are in scope.
Use Babel 6 or find a Babel 7 compatible alternative.
Use 'plugins: ["babel-plugin-jsx"]' or require the generator submodule: 'plugins: [require("babel-plugin-jsx/gen")()]'Define the variable in scope, add it to builtins array, or set throwOnMissing: false
Use Babel 6 or replace the plugin with a Babel 7 compatible JSX-IR plugin.
No dependency data recorded yet.