3 ms·
NodeJS with its commonjs vs modules, it's a huge mess IMO. Add typescript and build systems for bonus clusterf*cks.
by tobyhinloopen 1y ago
NodeJS with its commonjs vs modules, it's a huge mess IMO. Add typescript and build systems for bonus clusterf*cks.
- agos 1y agothe whole commonjs vs modules is there precisely because they chose not to introduce a breaking change. Typescript has introduced breaking changes but they're not that bad
- hinkley 1y agoI’m trying to port a reasonable popular node module to ESM and it’s not going well. I’m finding bugs in createRequire() and meanwhile functional differences between require and import might make some idiomatic code patterns not function at all.