{"library":"rollup-plugin-jsx","title":"rollup-plugin-jsx","description":"A Rollup plugin that transforms JSX syntax into JavaScript using jsx-transform. Version 1.0.3 is the latest stable release, with no recent updates. It allows configuring JSX factory functions and pragma options. Compared to alternatives like @rollup/plugin-babel with React preset or @rollup/plugin-sucrase, it is a lightweight, zero-config option for simple JSX transformation without full Babel setup. However, it is a thin wrapper around an unmaintained library (jsx-transform) and may not support modern JSX features like automatic runtime; it is best suited for legacy projects.","language":"javascript","status":"maintenance","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-jsx"],"cli":null},"imports":["import jsx from 'rollup-plugin-jsx'","const jsx = require('rollup-plugin-jsx').default","import jsx from 'rollup-plugin-jsx'; // default export"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import jsx from 'rollup-plugin-jsx';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    file: 'bundle.js',\n    format: 'iife',\n  },\n  plugins: [\n    jsx({\n      factory: 'React.createElement',\n      pragma: 'h',\n    }),\n  ],\n};","lang":"javascript","description":"Shows how to configure rollup-plugin-jsx with a custom factory and pragma for JSX transformation in a Rollup build.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}