-
-
Notifications
You must be signed in to change notification settings - Fork 37.3k
REPL with package.json "type":"module" #33369
Copy link
Copy link
Closed
Labels
replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
Description
Activity
Metadata
Metadata
Assignees
Labels
replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
Just as having "type":"module" in package.json in the current directory implies that .js files can do
import x from 'y', typingnode(and then some code) in the directory, where that package.json is, shall also understandimport x from 'y'.In addition there shall be a way to pass a command line switch to node, so that on REPL it understands ES6
import.