Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
tobyhinloopen
5mo ago
0 comments
Share
NodeJS with its commonjs vs modules, it's a huge mess IMO. Add typescript and build systems for bonus clusterf*cks.
undefined | Better HN
0 comments
default
newest
oldest
hinkley
5mo ago
I’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.
agos
5mo ago
the 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
j
/
k
navigate · click thread line to collapse