Back to Relay

Compiler Configuration

website/versioned_docs/version-v20.0.0/getting-started/compiler-config.md

20.1.1857 B
Original Source

import CompilerConfig from '@site/src/compiler-config/CompilerConfig'; import schema from './relay-compiler-config-schema.json';

Compiler Config Options

For information about where the Relay compiler looks for its config file, or a minimal config, see the Relay Compiler page.

If you need more advanced options of the Relay Compiler Config, the exhaustive full schema can be found below. The shape of the Relay Compiler Config is given as ConfigFile. Note that while the shapes are documented in pseudo TypeScript, the compiler is parsing them in Rust so some subtle differences may exist.

:::tip Install the Relay VSCode extension to get autocomplete, hover tips, and type checking for the options in your Relay config. :::

<CompilerConfig schema={schema} definitions={schema.definitions} />