Add type definitions for all Intl formatter objects (DateTimeFormat, NumberFormat, Collator, PluralRules, ListFormat, RelativeTimeFormat, Segmenter, DisplayNames) so the compiler understands that formatter instances are immutable and their methods only read arguments. Without these types, `new Intl.DateTimeFormat().format(date)` would conservatively assume the format call captures `date` into the formatter, creating an unnecessary dependency. Also fix `#resolveModuleType` to always fall back to `defaultModuleTypeProvider` when a custom `moduleTypeProvider` returns null, so that tools like the snap runner that set their own provider still get the default module types (react-hook-form, tanstack, etc.).
babel-plugin-react-compiler
React Compiler is a compiler that optimizes React applications, ensuring that only the minimal parts of components and hooks will re-render when state changes. The compiler also validates that components and hooks follow the Rules of React.
This package contains the React Compiler Babel plugin use in projects that make use of Babel. You can find instructions for using this plugin here: https://react.dev/learn/react-compiler