import { type Types } from "https://deno.land/x/mesozoic@v1.0.3/lib/swc.ts";
const { ReactConfig } = Types;
Properties
Replace the function used when compiling JSX expressions.
Defaults to React.createElement
.
Replace the component used when compiling JSX fragments.
Defaults to React.Fragment
Toggles whether or not to throw an error if a XML namespaced tag name is used. For example:
<f:image />
Though the JSX spec allows this, it is disabled by default since React's JSX does not currently have support for it.
Toggles plugins that aid in development, such as @swc/plugin-transform-react-jsx-self and @swc/plugin-transform-react-jsx-source.
Defaults to false
,