The Superpower of ASTs: How We Saved 16% on Our Bundle Size
watch on portal.gitnation.org ↗https://portal.gitnation.org/contents/the-superpower-of-asts-how-we-saved-16percent-on-our-bundle-sizesummary
Explains how Abstract Syntax Trees (ASTs) were used to inline constant objects into their call sites to reduce output bundle size by 16%, a result that even improved on Webpack/Terser tree-shaking. Covers what ASTs are, practical techniques and best practices for manipulating them, common challenges and how to avoid a specific pitfall encountered when working with AST transformations.
AI-written summary · about
related talks
15mThe Superpower of ASTs: How We Saved 16% on Our Bundle Size
29mAST: the Secret Weapon to Transform a Codebase
33mAs Simple as an AST
45mBundler Bonanza
22mHow Linters, Compilers & Other Cool Things Work
34mBuild-time Optimizations in JavaScript Applications
43mMachine Powered Refactoring: Leverage AST's to Push Your Legacy Code (& the Web) Forward
31mAST à la Vista, Baby