Skip to content
Prev Previous commit
Next Next commit
Update on "[compiler] Errors in earlier functions dont stop subsequen…
…t compilation"

Errors in an earlier component/hook shouldn't stop later components from compiling.

[ghstack-poisoned]
  • Loading branch information
josephsavona committed Aug 29, 2024
commit 2ae6178794455c0a3d7bdd301211debe43f201d7
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,9 @@ export function compileProgram(
} else {
handleError(lintError, pass, fn.node.loc ?? null);
}
// Skip compiling functions that are covered by a suppression comment
return null;
if (isCriticalError(lintError)) {
return null;
}
}

let compiledFn: CodegenFunction;
Expand Down