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).
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).