Re:NPM and NodeJS should do more to make ES Modules easy to use
by efilife on Friday June 21, 2024 @03:52AM
(#40747180)
This is not a talk about browsers, hence the readFileSync examples
[ Parent
| on HN ]
Re:NPM and NodeJS should do more to make ES Modules easy to use
by recursive on Friday June 21, 2024 @12:34PM
(#40751216)
The reason we got here in the first place was trying to standardize the language and its module loading. If you come up with a solution that doesn't work in browsers, we're back to the same thing. Instead of the `require()` polyfill, we'd need the `importSync` polyfill.