react/compiler/packages/babel-plugin-react-compiler/scripts/jest
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
..
e2e-classic.config.js Compiler: unfork prettier config (#30205) 2024-07-18 17:00:24 -04:00
e2e-forget.config.js Compiler: unfork prettier config (#30205) 2024-07-18 17:00:24 -04:00
main.config.js Compiler: unfork prettier config (#30205) 2024-07-18 17:00:24 -04:00
makeE2EConfig.js Compiler: unfork prettier config (#30205) 2024-07-18 17:00:24 -04:00
makeSnapshotResolver.js Compiler: unfork prettier config (#30205) 2024-07-18 17:00:24 -04:00
makeTransform.ts [compiler] clean up retry pipeline: fireRetry flag -> compileMode (#32511) 2025-03-13 19:54:54 -04:00
setupEnvE2E.js Compiler: unfork prettier config (#30205) 2024-07-18 17:00:24 -04:00
snapshot-resolver-no-forget.js Compiler: unfork prettier config (#30205) 2024-07-18 17:00:24 -04:00
snapshot-resolver-with-forget.js Compiler: unfork prettier config (#30205) 2024-07-18 17:00:24 -04:00
transform-no-forget.js Compiler: unfork prettier config (#30205) 2024-07-18 17:00:24 -04:00
transform-with-forget.js Compiler: unfork prettier config (#30205) 2024-07-18 17:00:24 -04:00