3 ms·
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 sin
by tlrobinson 10y ago
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.
- hokkos 10y agoActivate 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.