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
overlookmotel
left a comment
There was a problem hiding this comment.
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