Just as having "type":"module" in package.json in the current directory implies that .js files can do import x from 'y', typing node (and then some code) in the directory, where that package.json is, shall also understand import 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.
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.