Hacker News new | past | comments | ask | show | jobs | submit login

I love async/await, it's the future, but dear god debugging transpiled async/await code is a nightmare (and I'm no stranger to JS transpilers, been doing it since 2007)

I'm not sure if Babel/Webpack doesn't support source maps with async/await, or if I don't have it configured right, but if someone has gotten it working please let me know how.




Activate the async-to-generator plug-in during the development, it is a simpler transformation so have a massively better source map support, but still have some difficulties to place some breakpoints. Sadly uglify still doesn't support generators so we can't use it in production mode.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: