Skip to content

Node reuse versus cloning #16314

Closed Answered by liuxingbaoyu
ehoogeveen-medweb asked this question in Q&A
Discussion options

You must be logged in to vote

This is a long-standing problem with Babel, where current binding information is not always reliable.
In fact, the former should be recommended, but it may actually cause side effects. You can use it flexibly according to actual needs.
If you wish to use precise binding information, use path.scope.crawl() to refresh the binding information.

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@liuxingbaoyu
Comment options

@ehoogeveen-medweb
Comment options

@liuxingbaoyu
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@liuxingbaoyu
Comment options

Answer selected by ehoogeveen-medweb
@nicolo-ribaudo
Comment options

@ehoogeveen-medweb
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants