babel scope.crawl()

 

 

https://blog.csdn.net/qq523176585/article/details/126377305

 

 

scope.crawl()


scope.crawl(); :调用 crawl 方法重新遍历作用域中的所有节点。这是 Babel 的一个功能,它会更新在遍历过程中修改的 AST 节点。
在遍历结束后,调用 crawl 方法重新遍历作用域中的所有节点,以确保所有更新都已反映在 AST 中。

 

 

posted @ 2023-11-02 10:45  AngDH  阅读(14)  评论(0编辑  收藏  举报