Skip to content

API Reference / @gtkx/config / @gtkx/config / ReactCompilerOptions

Type Alias: ReactCompilerOptions ​

ReactCompilerOptions = object

Defined in: packages/config/src/config.ts:11

Object form of the reactCompiler config key, forwarded to babel-plugin-react-compiler.

Properties ​

compilationMode? ​

optional compilationMode?: "all" | "annotation" | "infer" | "syntax"

Defined in: packages/config/src/config.ts:17

Which functions the React Compiler processes.

Default Value ​

"infer", the React Compiler's own default


panicThreshold? ​

optional panicThreshold?: "all_errors" | "critical_errors" | "none"

Defined in: packages/config/src/config.ts:23

Which React Compiler diagnostics fail the build.

Default Value ​

"none", the React Compiler's own default