Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

"Support" static import in repl #34750

Copy link
Copy link
@MylesBorins

Description

@MylesBorins
Issue body actions

Right now we can only support dynamic import in the repl as the repl is running in the script goal (rather than module). Currently there is experimental support in place for Top-Level Await, which is not supported in the script goal either. This is accomplished by using acorn to transpile the submitted code that is read, prior to evaluate, and wrapping stuff in an async function.

In theory we could utilize the same pipeline to transpile a static import into an await import().

Thoughts?

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    esmIssues and PRs related to the ECMAScript Modules implementation.Issues and PRs related to the ECMAScript Modules implementation.replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.