September 2019 update
The found update to Babel 7 solved this problem. Perhaps try:
$ npm install --save-dev @babel/core @babel/node @babel/preset-env
Your package.json should contain something like:
"devDependencies": { "@babel/core": "^7.6.0", "@babel/node": "^7.6.1", "@babel/preset-env": "^7.6.0" }
My .babelrc file looks like this:
{ "presets": ["@babel/preset-env"] }
Now that I am running:
npx babel-node src/index.js
the performance is almost instantaneous (it took 20+ seconds for it with babel 6).
See babel 7.5 docs for more on this.
Also, for help on upgrading, see this stack processing & answer question .
arcseldon
source share