I\'m trying to use async, await from scratch on Babel 6, but I\'m getting regeneratorRuntime is not defined.
.babelrc file
{ \"presets\": [ \"es2
If using babel-preset-stage-2 then just have to start the script with --require babel-polyfill.
babel-preset-stage-2
--require babel-polyfill
In my case this error was thrown by Mocha tests.
Mocha
Following fixed the issue
mocha \"server/tests/**/*.test.js\" --compilers js:babel-register --require babel-polyfill