react/compiler/packages/babel-plugin-react-compiler/scripts
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
..
jest [compiler] clean up retry pipeline: fireRetry flag -> compileMode (#32511) 2025-03-13 19:54:54 -04:00
babel-plugin-annotate-react-code.ts Compiler: unfork prettier config (#30205) 2024-07-18 17:00:24 -04:00
build-react-hooks-fixures.js Compiler: unfork prettier config (#30205) 2024-07-18 17:00:24 -04:00
eslint-plugin-react-hooks-test-cases.js Compiler: unfork prettier config (#30205) 2024-07-18 17:00:24 -04:00
link-react-compiler-runtime.sh [rcr] Update default runtimeModule to react-compiler-runtime (#31144) 2024-10-07 17:59:33 -04:00
ts-analyze-trace.sh Rename babel plugin 2024-05-02 14:12:33 -07:00