OptionaldevelopmentEmit development-specific information, such as __source and __self.
OptionalimportReplaces the import source when importing functions.
OptionalpragmaReplace the function used when compiling JSX expressions. It should be a
qualified name (e.g. React.createElement) or an identifier (e.g.
createElement).
Only used for classic runtime.
OptionalpragmaReplace the component used when compiling JSX fragments. It should be a valid JSX tag name.
Only used for classic runtime.
OptionalpureEnables @babel/plugin-transform-react-pure-annotations.
It will mark JSX elements and top-level React method calls as pure for tree shaking.
OptionalrefreshEnable React Fast Refresh .
Conforms to the implementation in https://github.com/facebook/react/tree/v18.3.1/packages/react-refresh
OptionalruntimeDecides which runtime to use.
OptionalthrowToggles whether or not to throw an error if an XML namespaced tag name is used.
Though the JSX spec allows this, it is disabled by default since React's JSX does not currently have support for it.
OptionaluseWhen spreading props, use Object.assign directly instead of an extend helper.
Only used for classic runtime.
OptionaluseWhen spreading props, use inline object with spread elements directly instead of an extend helper or Object.assign.
Only used for classic runtime.
Configure how TSX and JSX are transformed.
See
https://babeljs.io/docs/babel-plugin-transform-react-jsx#options