Back to Browse

Manipulating AST with JavaScript

1.7K views
Oct 10, 2023
58:04

Disclaimer: This video was recorded in 2021. The information presented may no longer be accurate or up-to-date. Viewers are advised to verify any details or facts before making decisions based on the content. I'll show you around, how to use the ASTExplorer, how to quickly prototyping a Babel plugin within the ASTExplorer, and then use it within a script. Through this video, you'll be able to write a script to manipulate AST yourself. ASTExplorer https://astexplorer.net/ Babel https://babeljs.io/ 00:00 Intro 02:16 Prototyping using ASTExplorer 07:37 Exploring the AST 11:26 Writing the AST transformer 25:10 Setting up the codemod 38:40 Handling scope in the AST 57:37 Ending

Download

1 formats

Video Formats

360pmp4104.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Manipulating AST with JavaScript | NatokHD