refactor: add entry idx for EntryPoint#9100
Conversation
How to use the Graphite Merge QueueAdd the label graphite: merge-when-ready to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
✅ Deploy Preview for rolldown-rs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for rolldown-rs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
6e9915f to
89334dd
Compare
89334dd to
cf32a71
Compare
| } | ||
|
|
||
| let entry_points = entry_points.into_iter().collect_vec(); | ||
| let mut entry_points: Vec<EntryPoint> = entry_points.into_iter().collect(); |
There was a problem hiding this comment.
What's the issue of using IndexVec<EntryPoint> directly?
There was a problem hiding this comment.
Because some of the entry points may be eliminated in include_statements, which means they are not stable, I store the Idx inside the EntryPoint rather than in IndexVec indices.
There was a problem hiding this comment.
rolldown/crates/rolldown/src/stages/link_stage/mod.rs
Lines 146 to 149 in c32075e
Will entry_points remove items or only does extention?
4efb8fe to
71ed056
Compare
cf32a71 to
499ccd2
Compare
499ccd2 to
c32075e
Compare
c32075e to
fd82afa
Compare

No description provided.