Skip to content

Commit c92c579

Browse files
authored
[compiler] Fix Pipeline.ts early-exit, formatting, and style issues (facebook#35884)
Fix the transformFire early-exit in Pipeline.ts to only trigger on new errors from transformFire itself, not pre-existing errors from earlier passes. The previous `env.hasErrors()` check was too broad — it would early-exit on validation errors that existed before transformFire ran. Also add missing blank line in CodegenReactiveFunction.ts Context class, and fix formatting in ValidateMemoizedEffectDependencies.ts. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/35884). * facebook#35888 * __->__ facebook#35884
1 parent 011cede commit c92c579

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CodegenReactiveFunction.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ class Context {
442442
recordError(error: CompilerErrorDetail): void {
443443
this.env.recordError(error);
444444
}
445+
445446
get nextCacheIndex(): number {
446447
return this.#nextCacheIndex++;
447448
}

0 commit comments

Comments
 (0)