Skip to content

"Support" static import in repl #34750

Description

@MylesBorins

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    esmIssues and PRs related to the ECMAScript Modules implementation.replIssues 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