Skip to content

v3+: Can we use "node:<buildinName>" as import specifier in v3+? #4595

@frank-dspeed

Description

@frank-dspeed

Expected Behavior / Situation

i type something like

cat my.js | grep "node:"

and get all nodejs buildin modules that are required by the module

Actual Behavior / Situation

i write the command and i get nothing

Modification Proposal

import { readFile } from "fs/promises";
// should be for example
import { readFile } from "node:fs/promises";

Target Branch

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions