Skip to content

Conversation

sxzz
Copy link
Member

@sxzz sxzz commented Jun 17, 2022

  • use estree-walker.

estree-walker is faster and simpler than @babel/traverse.

FYI: a simple benchmark in my plugin.

P.S. Please keep estree-walker 2.x, cause estree-walker@3 is a ESM-only package.

@sxzz sxzz requested a review from antfu as a code owner June 17, 2022 18:33
@antfu
Copy link
Member

antfu commented Jun 18, 2022

We could bundle it to keep it up-to-date

@sxzz
Copy link
Member Author

sxzz commented Jun 18, 2022

estree-walker is an optional peer dep. So, we should add it to dep of this project?

@sxzz
Copy link
Member Author

sxzz commented Jun 18, 2022

Done.

@antfu antfu merged commit 8c9b114 into main Jun 18, 2022
@antfu antfu deleted the refactor/estree-walker branch June 18, 2022 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants