Загрузка видео...

Не удалось загрузить видео

На главную

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 просмотров • 2 лет назад •via X (Twitter)

Комментарии: 11

Фото профиля Kyle TechSquidTV
Kyle TechSquidTV2 лет назад

> makes importing ESM into CJS files just work Dear GOD

Фото профиля Wes Bos
Wes Bos2 лет назад

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

Фото профиля Travis Northcutt
Travis Northcutt2 лет назад

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

Фото профиля Fran Agulto🧗🏽‍♂️🤓 ⚛️
Fran Agulto🧗🏽‍♂️🤓 ⚛️2 лет назад

that’s dope Wes!!! stoked

Фото профиля Phil Deschaine
Phil Deschaine2 лет назад

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

Фото профиля Wes Bos
Wes Bos2 лет назад

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

Фото профиля Alex Stretcheira
Alex Stretcheira2 лет назад

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

Фото профиля Wes Bos
Wes Bos2 лет назад

6.34 × faster. Thanks to the GOAT @yagiznizipli

Фото профиля Mohammad Bagher 🦋
Mohammad Bagher 🦋2 лет назад

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

Фото профиля jack_the_dev
jack_the_dev2 лет назад

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
Wes Bos2 лет назад

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

Похожие видео