r/node • • Feb 01 '22

Fetch API has landed into Node.js

https://github.com/nodejs/node/commit/6ec225392675c92b102d3caad02ee3a157c9d1b7
280 Upvotes

31 comments sorted by

View all comments

Show parent comments

13

u/Solonotix Feb 01 '22

Isn't ESM the "way forward" for Node.js? I've seen tons of posts a out how TypeScript allows use of modules, and that's always seen as a good thing, but then discussion of ESM always seems to be met with disdain.

4

u/Bloodsucker_ Feb 01 '22

Yeah, what's the problem with ESM? That's the way to go from now on, people. Just do it. If you use typescript you don't even have to do anything.

13

u/matthewsilas Feb 01 '22

Any app built before esm can’t justify the expense to refactor to esm.