dillon1000/react

Commit

Gate inlined consoleWithStackDev transpilation (#30317)

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.
Browse files
Changed paths3 files
First-parent comparison
M packages/react-client/src/ReactClientConsoleConfigBrowser.js ModifiedM packages/react-client/src/ReactClientConsoleConfigPlain.js ModifiedM packages/react-client/src/ReactClientConsoleConfigServer.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…