mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
b71b43e3a7
This code is getting deleted in #30313 anyway but it should've been
gated all along.
This code exists to basically manually transpile console.error to
consoleWithStackDev because the transpiler doesn't work on `.apply` or
`.bind` or the dynamic look up. We only apply the transform in DEV so we
should've only done this in DEV.
Otherwise these logs get silenced in prod.
DiffTrain build for [a09950ed41](https://github.com/facebook/react/commit/a09950ed418adb26a5e735b4ee9eca5e5282ffc7)