Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
tobyhinloopen
8mo ago
0 comments
Save
Share
NodeJS with its commonjs vs modules, it's a huge mess IMO. Add typescript and build systems for bonus clusterf*cks.
0 comments
2 comments · 2 top-level
top
newest
oldest
hinkley
8mo 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
8mo 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