-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
semantic: traverse scope tree #5386
Comments
It seems like we can make this optional, it's only used after rolldown recreates the scope tree https://github.com/rolldown/rolldown/blob/c916947780f036779725d45729e7de65e4745abb/crates/rolldown/src/utils/pre_process_ecma_ast.rs#L101-L102 |
Maybe we can move I'll take a look tomorrow. |
I looked at Rolldown's
i.e. the only bindings which need to be renamed are top-level bindings. I'd imagine this would be faster than the current implementation, and would not require But... I imagine making that change would break loads of Rolldown's tests which rely on the current naming scheme. We don't have time to figure that out, so yes let's revert #5232, so we can get a release out that doesn't break Rolldown. BUT... can we put it behind a compile-time feature, not a runtime one? If we use a runtime check, the repeated Or we revert with a runtime flag first, and then switch over to a compile-time feature and measure the impact on Oxc's benchmarks. |
Closed in #5403. |
#5232 removed traversing the scope tree, we need it back or have a way to traverse scopes.
This blocks us from making a release for Rolldown.
https://github.com/rolldown/rolldown/blob/6b5d7dc97b47895bd8280d29c2a815e159fa6b8c/crates/rolldown/src/utils/renamer.rs#L162-L173
The text was updated successfully, but these errors were encountered: