-
-
Notifications
You must be signed in to change notification settings - Fork 496
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
fix(oxc_transform): overlap replacement #7621
Conversation
Your org has enabled the Graphite merge queue for merging into mainAdd the label “0-merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
ded4b7b
to
04312f6
Compare
Since @overlookmotel any chance to implement |
CodSpeed Performance ReportMerging #7621 will not alter performanceComparing Summary
|
Correct. The way you are handling it here seems like a good option in meantime, especially as the subtree is likely small, so not a great cost to visiting it.
I'm not familiar with the define plugin, so not sure what you mean by "overlap". Can you give an example showing the problem with |
Here is one, https://esbuild.github.io/try/#dAAwLjI0LjAAewogIGRlZmluZTogewogICAgJ2ltcG9ydC5tZXRhLmVudi5GT08nOiAnaW1wb3J0Lm1ldGEuZW52LkZPTycsCiAgICAnaW1wb3J0Lm1ldGEuZW52JzogJ19fZm9vX18nLAogIH0sCn0ACmNvbnNvbGUubG9nKAoJW2ltcG9ydC5tZXRhLmVudi5GT08gPSAwXQopCg, you could see but for us, |
04312f6
to
4fce07e
Compare
e5cde8b
to
f6c6399
Compare
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.
Apart from the comments I've made, looks good.
But could you please add some comments about what ast_node_lock
is and how it works?
crates/oxc_transformer/tests/integrations/plugins/replace_global_defines.rs
Show resolved
Hide resolved
crates/oxc_transformer/tests/integrations/plugins/replace_global_defines.rs
Outdated
Show resolved
Hide resolved
c4c2dba
to
67f9a0e
Compare
Merge activity
|
67f9a0e
to
f7d41dd
Compare
closed #7594
Reference
https://github.com/oxc-project/oxc/pull/7343/files