Welcome! This repository gathers all the references, slides, and resources from my talk "Recreating UglifyJS From Scratch: Demystifying Code Minification and Source Map Generation".
Unlock the secrets of code minification and source map generation! In this session, you'll:
- Explore Abstract Syntax Trees (ASTs) and their role in code manipulation.
- Recreate a simplified version of UglifyJS from scratch.
- Learn how source maps work and how to generate them.
- Get inspired to build your own code-generation tools.
- Blog Post: Source Maps
- Source Maps Visualizer
- Enable Mapping on Firefox
- Source Maps Spec
- TC39
- TC39 Source Maps Proposal
- acorn (AST generator)
- escodegen (JS code generator)
- AST Explorer
- Base64 VLQ (spec)
- Node.js Source Map API
- Chrome DevTools: Source Maps
- UglifyJS AST
- Variable-length quantity (Wikipedia)
- Minification (Wikipedia)
This repository is a companion to the talk and serves as a reference hub. For hands-on code, check out the source code links above.
Have suggestions or want to contribute more resources? Feel free to open an issue or reach out!
Enjoy your journey into the world of code minification and source maps!