Better HN
topnewbestaskshowjobs
Log inSign up

sknowieowl

9 karma · joined Feb 16, 2021 (5y ago) · 3 submissions

Submissions

comment 5y ago · link · parent

TLA was accepted in the specification before the module loading scenarios were fully baked. Probably best to use async IIFEs until the TLA spec bugs are sorted out and the fixes are subsequently implemented in the major browsers and released. Maybe a year from now.

comment 5y ago · link · parent

It's part of the language, but not so much thoroughly vetted. The Chrome/V8 implementation has bugs.

https://github.com/evanw/esbuild/issues/253#issuecomment-773...

comment 5y ago · link · parent

I can confirm that esbuild is very fast - easily bundling my code a hundred times faster than webpack or rollup. And the minified esbuild bundles are only around 10% larger than what is produced by the JS-based bundlers. Considering it saves 30 seconds per build, this is more than an acceptable tradeoff.

It's good that this tool is shaking up the JS development ecosystem. It was getting stagnant (babel) and overly complicated (webpack). We can probably expect more tooling to migrate to golang and rust. I think the esbuild author accomplished his goal.