Skip to content

fix(turbopack): add turbopackIgnore magic comments replace judge#139

Merged
fireairforce merged 2 commits into
utoofrom
fix-ignore-comments
Apr 14, 2026
Merged

fix(turbopack): add turbopackIgnore magic comments replace judge#139
fireairforce merged 2 commits into
utoofrom
fix-ignore-comments

Conversation

@fireairforce
Copy link
Copy Markdown
Member

wait for a upstream pr merge, i will discard this change

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request modifies the ECMAScript module analysis in Turbopack to correctly handle ignored runtime bindings. Specifically, it ensures that 'require' calls marked with 'turbopackIgnore' are skipped during analysis so they remain untouched at runtime. Feedback suggests moving this check before the asynchronous 'link_value' call to improve efficiency by avoiding unnecessary processing and cloning.

Comment thread turbopack/crates/turbopack-ecmascript/src/references/mod.rs
@fireairforce fireairforce merged commit 36899a7 into utoo Apr 14, 2026
13 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant