react/compiler/packages
mofeiZ 7939d92fcc
[compiler] clean up retry pipeline: fireRetry flag -> compileMode (#32511)
Removes `EnvironmentConfig.enableMinimalTransformsForRetry` in favor of
`run` parameters. This is a minimal difference but lets us explicitly
opt out certain compiler passes based on mode parameters, instead of
environment configurations

Retry flags don't really make sense to have in `EnvironmentConfig`
anyways as the config is user-facing API, while retrying is a compiler
implementation detail.

(per @josephsavona's feedback
https://github.com/facebook/react/pull/32164#issuecomment-2608616479)
> Re the "hacky" framing of this in the PR title: I think this is fine.
I can see having something like a compilation or output mode that we use
when running the pipeline. Rather than changing environment settings
when we re-run, various passes could take effect based on the
combination of the mode + env flags. The modes might be:
>
> * Full: transform, validate, memoize. This is the default today.
> * Transform: Along the lines of the backup mode in this PR. Only
applies transforms that do not require following the rules of React,
like `fire()`.
> * Validate: This could be used for ESLint.
---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32511).
* #32512
* __->__ #32511
2025-03-13 19:54:54 -04:00
..
babel-plugin-react-compiler [compiler] clean up retry pipeline: fireRetry flag -> compileMode (#32511) 2025-03-13 19:54:54 -04:00
eslint-plugin-react-compiler [ez] Run Prettier on eslint-plugin-react-compiler/src/types (#32590) 2025-03-12 19:12:22 -04:00
make-read-only-util [compiler] Migrate compiler packages to tsup (#32550) 2025-03-07 16:41:55 -05:00
react-compiler-healthcheck fix: clarify which mobx libs are not compatible with compiler (#32570) 2025-03-13 11:46:26 -04:00
react-compiler-runtime [rcr] Fix incorrect output platform (#32569) 2025-03-11 10:41:48 -04:00
react-forgive [forgive][ez] Ignore test file (#32477) 2025-02-25 19:09:21 -05:00
snap [compiler][ez] Move compiler gating tests (#32595) 2025-03-13 12:06:48 -04:00