Experimental version of the Relay Compiler, part of Meta's Relay GraphQL client ecosystem. This package (v0.0.1) is an unstable pre-release intended for testing new compiler features before they migrate to the stable relay-compiler package. It follows the same release cadence as the main Relay monorepo but may introduce breaking changes without notice. Key differentiators: early access to compiler experiments, potential for rapid iteration, but no stability guarantees. Not recommended for production use.
npm install relay-compiler-experimentalNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates compiling a GraphQL query with the experimental compiler, specifying schema and output directory.
Migrate to relay-compiler (stable) which includes most experimental features.
Pin to exact version and test upgrades thoroughly.
Use only one compiler package per project.
Run 'npm install relay-compiler-experimental' or check package.json.
Use ESM imports or set type: "module" in package.json.
Use named imports: import { compile } from 'relay-compiler-experimental'.