ReactConfig
interface ReactConfig {
development?: boolean;
importSource?: string;
pragma?: string;
pragmaFrag?: string;
refresh?: boolean;
runtime?: "automatic" | "classic";
throwIfNamespace?: boolean;
useBuiltins?: boolean;
}§Properties
§
development?: boolean
[src]Toggles plugins that aid in development, such as @swc/plugin-transform-react-jsx-self and @swc/plugin-transform-react-jsx-source.
Defaults to false
,
§
importSource?: string
[src]Declares the module specifier to be used for importing the jsx
and jsxs
factory functions when using runtime
'automatic'
§
pragma?: string
[src]Replace the function used when compiling JSX expressions.
Defaults to React.createElement
.
§
pragmaFrag?: string
[src]Replace the component used when compiling JSX fragments.
Defaults to React.Fragment