Turbopack: remove StarImportAnalyzer#92830
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Merging this PR will improve performance by 3.86%
Performance Changes
Comparing Footnotes
|
Stats from current PR✅ No significant changes detected📊 All Metrics📖 Metrics GlossaryDev Server Metrics:
Build Metrics:
Change Thresholds:
⚡ Dev Server
📦 Dev Server (Webpack) (Legacy)📦 Dev Server (Webpack)
⚡ Production Builds
📦 Production Builds (Webpack) (Legacy)📦 Production Builds (Webpack)
📦 Bundle SizesBundle Sizes⚡ TurbopackClient Main Bundles
Server Middleware
Build DetailsBuild Manifests
📦 WebpackClient Main Bundles
Polyfills
Pages
Server Edge SSR
Middleware
Build DetailsBuild Manifests
Build Cache
🔄 Shared (bundler-independent)Runtimes
📎 Tarball URL |
3de5acb to
de62a96
Compare
50ce3fd to
658ec6f
Compare
c9bff2a to
14aab78
Compare
Tests Passed |
| let callee_span = match &n.callee { | ||
| box Expr::Ident(Ident { sym, .. }) if sym == "Worker" => Some(n.span), | ||
| let callee_span = match &*n.callee { | ||
| Expr::Ident(Ident { sym, .. }) if sym == "Worker" => Some(n.span), |
There was a problem hiding this comment.
this is a little weird right? should we check that this is an unresolved id as well? or i guess over matching is no big deal, but what about aliasing?
There was a problem hiding this comment.
this is the match on the parsing of the comment
and the actual JsValue-based logic will be a proper analysis.
but you're right, if you alias Worker to a different variable, then the comment wouldn't work.
14aab78 to
e489805
Compare
e489805 to
487822d
Compare

There is actually no reason to compute
full_star_importsbefore thevisit_with(&mut analyzer): it's only used later on by references/mod.rs which callsshould_import_all.So we can just do it in the same traversal