Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
akvadrako
· 8y ago · 0 comments
Then you must prepare two bundles, one for new browsers and one for old. I suppose that's possible, but doesn't seem worth it.
Comments
[–]
styfle
8y ago
You can use <script type=module> to target newer browsers. It’s definitely worth having two bundles because the ES6 and newer is much smaller. And one day, you stop shipping the old ES5 bundle.
[–]
TomMarius
8y ago
It is worth it most of the time.