Ignore for a moment that a spec exists for ESM and just look at the implementations. The JS modules story would be: * Node.js made a module system. * Webpack made a slightly better but 100% compatible module system. * Browsers made small adjustments to it that broke everyone.
-
-
Why couldn't require work the same way as import? No lazy loading, but predefined modules. It's the arbitrary new syntax that really gets me.
-
Syntax choices were heavily constrained. `require()` already in wide use, and userland overloading would defeat many fetch-time optimisations. Also, semantics of Node fetch are highly ambiguous w/o cheap disk access.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.