Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gate inlined consoleWithStackDev transpilation #30317

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

sebmarkbage
Copy link
Collaborator

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.

We only apply this transform in DEV.
@sebmarkbage sebmarkbage requested a review from kassens July 11, 2024 16:50
Copy link

vercel bot commented Jul 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 11, 2024 4:55pm

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Jul 11, 2024
@sebmarkbage sebmarkbage merged commit a09950e into facebook:main Jul 11, 2024
138 checks passed
github-actions bot pushed a commit that referenced this pull request Jul 11, 2024
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 [a09950e](a09950e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants