4 ms·
I really wish ECMA just ran with the Node.js require instead of unnecessarily creating a new standard. Maybe one day we'll see interchangeable use of require/im
by xeckr 3y ago
I really wish ECMA just ran with the Node.js require instead of unnecessarily creating a new standard. Maybe one day we'll see interchangeable use of require/import.
One has to wonder about the total number of hours wasted debugging issues that trace their origin to ECMA's decision.
- spankalee 3y agoNot possible. require() is broken by design by being synchronous.
- zarzavat 3y agoIt’s not though. You can return an awaitable object.
- paulddraper 3y agoNo, async module loading or statically analyzable module loading is necessary for web. AMD wasn't invented on a whim