-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Skip unreachable code when early return can be statically analysed #8890
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
8 Skipped Deployments
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
✅ This change can build |
🟢 Turbopack Benchmark CI successful 🟢Thanks |
b2cc4c2
to
8a4ede8
Compare
481143f
to
770f180
Compare
|
53af145
to
a638562
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other codes (except the tiny concerns) look good to me/
…ercel/turborepo#8890) ### Description * tracks early returns and their conditions * replaces unreachable code with `"TURBOPACK unreachable"` * finds hoisted declarations in unreachable code and keeps them ### Testing Instructions <!-- Give a quick description of steps to test your changes. -->
* vercel/turborepo#8879 <!-- Niklas Mischkulnig - Convert MDX errors into issues --> * vercel/turborepo#8873 <!-- Tobias Koppers - smarter logical combination that keeps truthy/falsy/nullish property --> * vercel/turborepo#8890 <!-- Tobias Koppers - Skip unreachable code when early return can be statically analysed -->
…ercel/turborepo#8890) ### Description * tracks early returns and their conditions * replaces unreachable code with `"TURBOPACK unreachable"` * finds hoisted declarations in unreachable code and keeps them ### Testing Instructions <!-- Give a quick description of steps to test your changes. -->
* vercel/turborepo#8879 <!-- Niklas Mischkulnig - Convert MDX errors into issues --> * vercel/turborepo#8873 <!-- Tobias Koppers - smarter logical combination that keeps truthy/falsy/nullish property --> * vercel/turborepo#8890 <!-- Tobias Koppers - Skip unreachable code when early return can be statically analysed -->
Description
"TURBOPACK unreachable"
Testing Instructions