main
md 9 lines 544 Bytes
Rendered Raw
1 ---
2 description: Read pass documentation before modifying compiler passes
3 globs:
4 - compiler/packages/babel-plugin-react-compiler/src/**/*.ts
5 ---
6
7 Before modifying a compiler pass, read its documentation in `compiler/packages/babel-plugin-react-compiler/docs/passes/`. Pass docs explain the pass's role in the pipeline, its inputs/outputs, and key invariants.
8
9 Pass docs are numbered to match pipeline order (e.g., `08-inferMutationAliasingEffects.md`). Check `Pipeline.ts` if you're unsure which doc corresponds to the code you're modifying.