You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.
Since at least Node 14 one can import builtin modules using the nodejs: scheme. e.g. import fs from "nodejs:fs"; or import("nodejs:fs"). However this capability doesn't seem to be documented anywhere (particularly not on the esm docs).
It would be good to either document this, if it is officially supported, or to warn when nodejs: scheme is used (if it's only for internal use).
The text was updated successfully, but these errors were encountered:
@Jamesernator that isn't stable and actually has been a discussion on if it should be node: since that is what policies use. Whenever we converge it will be documented
nodejs/node#35387 has landed so the features have unified on node:, do we want to officially document this now? We have a semi-implicit documentation bit in the resolver spec already.
bmeck
changed the title
Document nodejs: scheme
Document ~nodejs:~ node: scheme
Sep 30, 2020
bmeck
changed the title
Document ~nodejs:~ node: scheme
Document node: scheme
Sep 30, 2020
Since at least Node 14 one can import builtin modules using the
nodejs:
scheme. e.g.import fs from "nodejs:fs";
orimport("nodejs:fs")
. However this capability doesn't seem to be documented anywhere (particularly not on the esm docs).It would be good to either document this, if it is officially supported, or to warn when
nodejs:
scheme is used (if it's only for internal use).The text was updated successfully, but these errors were encountered: