-
Notifications
You must be signed in to change notification settings - Fork 2.1k
mark resolve issues inside a try block as warnings #4414
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
mark resolve issues inside a try block as warnings #4414
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
8 Ignored Deployments
|
✅ This changes can build |
🟢 CI successful 🟢Thanks |
Should it be a warning or should it just be accepted? |
28b451d
to
c1d693e
Compare
@@ -115,13 +115,15 @@ pub enum Effect { | |||
/// The ast path to the condition. | |||
ast_path: Vec<AstParentKind>, | |||
span: Span, | |||
in_try: bool, |
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.
I guess that doesn't need the flag, but nevermind...
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.
Unfortunately, it is actually used
pkg = require("packages/found"); | ||
} | ||
|
||
pkg.fn(); |
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.
Probably need some snapshots and updates to the existing snapshots
## Description A require call inside a try block will only emit a warning instead of an error now. I also added source information to the resolve issues where possible ### Example ```js try { require("missing-module"); } ... ``` previously this would show an error in the overlay, now it's just a warning ## Additional Turbopack Updates * vercel/turborepo#4414 (requirement for this) * vercel/turborepo#4434 * vercel/turborepo#4447 * vercel/turborepo#4448 * vercel/turborepo#4446
Description
I also added source information to the resolve issues where possible
fix WEB-633