Skip to content

REPL import statement support #47278

@loynoir

Description

@loynoir

What is the problem this feature will solve?

Deno REPL support statement support.

But Node.js REPL does not support import statement.

What is the feature you are proposing to solve the problem?

Node.js REPL import statement support.

What alternatives have you considered?

Rewrite

import {foo} from "bar"

To

var {foo} = await import("bar")

Related

privatenumber/tsx#213

privatenumber/tsx#52

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.replIssues and PRs related to the REPL subsystem.stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions