Skip to main content
Module

x/swdev/swc_wasm/types.ts>ReactConfig

No bundle frontend by service-worker
Latest
interface ReactConfig
import { type ReactConfig } from "https://deno.land/x/swdev@0.5.2/swc_wasm/types.ts";

Properties

pragma: String

Replace the function used when compiling JSX expressions.

Defaults to React.createElement.

pragmaFrag: String

Replace the component used when compiling JSX fragments.

Defaults to React.Fragment

throwIfNamespace: boolean

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.

development: boolean

Toggles plugins that aid in development, such as @swc/plugin-transform-react-jsx-self and @swc/plugin-transform-react-jsx-source.

Defaults to false,

useBuiltins: boolean

Use Object.assign() instead of _extends. Defaults to false.