I have an ES6 module right.mjs. Executing it as a parameter to node works well:
$ node --version
v8.10.0
$ node --experimental-modu
This is currently impossible. ES modules are supposed to be imported from ES module scope, while REPL isn't considered one. This can improve with time because the support of ES modules is experimental. The use of require and import is mutually exclusive in Node module implementation, REPL already uses require.
The support for dynamic import is expected in REPL, it isn't supported yet, the latest Node 11 release causes an error:
TypeError [ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING]: A dynamic import callback was not specified.