Hacker News new | ask | show | jobs
by ryanseys 2232 days ago
It's different because it doesn't rely on require() which is non-standard JavaScript.
2 comments

Node v14 supports ESM modules and the import syntax, which is standard Javascript.
setTimeout is non-standard JavaScript too but I bet your code base has multiple instances of its usage.
Is it? It's on every browser I know.
Ah, makes sense, it's not part of the spec so it might be missing on other environments. Thank you.