4 ms·
Does it really matter what the generated code looks like? We use Typescript and I don't care what the final Javascript looks like. I don't plan to ever touch t
by spo81rty 11y ago
Does it really matter what the generated code looks like?
We use Typescript and I don't care what the final Javascript looks like. I don't plan to ever touch that code manually.
- tylerlh 11y agoIt matters if you're concerned about keeping the size of your JS payload in production to a minimum. In the Babel example, you're looking at multiple times more lines per async function compared to promises, plus extra execution via regenerator when compiled to ES5. That said, I'm a fan of async/await -- just not yet for projects where I need to optimize for filesize.