yarnpkg / berry

📦🐈 Active development trunk for Yarn ⚒
https://yarnpkg.com
BSD 2-Clause "Simplified" License
7.23k stars 1.07k forks source link

feat: allow modules prefixed with `node:` #6355

Closed jkowalleck closed 5 days ago

jkowalleck commented 5 days ago

What's the problem this PR addresses?

in nodejs, it is allowed to import builtins by prefixing them with node:. This PR enables this for yarn plugins.

fixes #5417

How did you fix it?

Currently, all builtin modules are added to an import map. I've added all these same modules to the import map a second time, but all with the prefix node:.

Checklist

jkowalleck commented 5 days ago

closed, in favor of #5997