Loading video...

Video Failed to Load

Go Home

Love to see Node kickin' ass like this. Node 22: → makes importing ESM into CJS files just work → added native file globbing → Introduces a task runner Thank you, Bun?

44,305 views • 2 years ago •via X (Twitter)

11 Comments

Kyle TechSquidTV's profile picture
Kyle TechSquidTV2 years ago

> makes importing ESM into CJS files just work Dear GOD

Wes Bos's profile picture
Wes Bos2 years ago

Makes me think back to all the talk when it was being implemented :\

Travis Northcutt's profile picture
Travis Northcutt2 years ago

@steve_tenuto some kinda neat and different graphics/facecam stuff going on in this video

Fran Agulto🧗🏽‍♂️🤓 ⚛️'s profile picture
Fran Agulto🧗🏽‍♂️🤓 ⚛️2 years ago

that’s dope Wes!!! stoked

Phil Deschaine's profile picture
Phil Deschaine2 years ago

Re the ESM-into-CJS thing, Hallelujah!! What about the other direction? Can you import CJS into an ESM package?

Wes Bos's profile picture
Wes Bos2 years ago

Yep, that has always been possible in Node. import whatever gives you the entire module.exports import { whatever } gives you exports.whatever

Alex Stretcheira's profile picture
Alex Stretcheira2 years ago

How fast is running “node --run” as opposed to using a package manager like npm, yarn, or even pnpm?

Wes Bos's profile picture
Wes Bos2 years ago

6.34 × faster. Thanks to the GOAT @yagiznizipli

Mohammad Bagher 🦋's profile picture
Mohammad Bagher 🦋2 years ago

@amirsa_12 check this out! node is here to stay.

jack_the_dev's profile picture
jack_the_dev2 years ago

The native task runner confuses me because I thought Node relied on NPM to do that. Is Node going to drop NPM as its default task runner and package manager?

Wes Bos's profile picture
Wes Bos2 years ago

They have said npm isn't going anywhere, but I think the idea is a faster run. The PR shows over 100ms shaved off, which is huge for cold starts

Related Videos