Walkthrough of debugging a bug related to webpack builds and tree-shaking.
00:00 Introduction
16:21 optimization.moduleIds: 'named'
19:14 Spot the difference
27:13 Not afraid to keep tracing
32:16 console.log
36:10 List out possibilities and prioritise your search
42:02 Log only when it matters, conditional logging
48:10 node --inspect --inspect-brk
51:41 debugger: step over, step into, step out
54:57 debugger: the current scope
01:02:33 Infer and trace back
01:07:03 Conditional breakpoint
01:28:17 Summary
---
VS Code Theme: Dracula at night https://marketplace.visualstudio.com/...
ZSH Theme: bullet-train https://github.com/caiogondim/bullet-...
🥰 Support me https://www.buymeacoffee.com/lihautan
🔗 Want to learn more from me? Check out these links:
Twitter: / lihautan
Blog: https://lihautan.com/
Newsletter: https://lihautan.com/newsletter
Discord: / discord
Thanks for watching 🥰 -- with love, Li Hau