Add React Compiler report script

Reports which components and hooks React Compiler skipped optimizing, using
the Babel plugin's `logger` option and grouping the diagnostics by the
compiler's own ErrorCategory. Runs in the Lint workflow, where it writes the
report to the job summary. Always exits 0 - a metric, not a gate.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Tomek Zawadzki
2026-08-25 15:16:05 +02:00
parent f87fdd2ea2
commit c2e4317590
6 changed files with 229 additions and 2 deletions
+1
View File
@@ -62,6 +62,7 @@
"lint": "oxlint --quiet src modules",
"lint-native": "swiftlint ./modules && ktlint ./modules",
"lint-native:fix": "swiftlint --fix ./modules && ktlint --format ./modules",
"react-compiler:report": "node --disable-warning=MODULE_TYPELESS_PACKAGE_JSON scripts/react-compiler-report.ts",
"lexicons:generate": "lex build --clear --index-file --import-ext ''",
"lexicons:install": "lex install",
"lexicons:update": "lex install --update",