mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
c9ec55e635
Improve React Compiler diagnostics with focused primary spans and related labels for declarations, dependencies, effects, nested functions, dynamic Hooks, and transitive ref access. This avoids full-function highlights and fixes zero-width arrow labels when lowered parameter spans are missing. Validation: `env -u NO_COLOR just ready`. AI-generated with Codex; reviewed and validated by the contributor.
11 lines
129 B
JavaScript
11 lines
129 B
JavaScript
// @outputMode:"lint"
|
|
function Component() {
|
|
try {
|
|
doWork();
|
|
} catch {
|
|
recover();
|
|
} finally {
|
|
cleanup();
|
|
}
|
|
}
|