local-repl
local-repl copied to clipboard
Use with a code base in ES7
Very nice project :)
I am not able to get it to import my ES7 modules which use import syntax. Is there support or a workaround for it? Thanks.
local-repl doesn't do any transformations (other than await syntax if enableAwait is enabled), so it will support the same syntax as the version of Node you're using. I'm unsure of any workaround for supporting import syntax in the Node repl.
try with babel-node
in package.json
"scripts": {
"repl": "babel-node node_modules/.bin/local-repl"
}