-
-
Notifications
You must be signed in to change notification settings - Fork 35.1k
Closed
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.
Description
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
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.