mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
The CompilerError module's `invariant` is wired up to our bailout system so in compiler passes should be preferred to the raw `invariant` module. We should probably add an internal eslint rule to suggest using CompilerError if the file is in one of the compiler pass directories.