I\'m trying to use async, await from scratch on Babel 6, but I\'m getting regeneratorRuntime is not defined.
.babelrc file
{ \"presets\": [ \"es2
I had a setup with webpack using presets: ['es2015', 'stage-0'] and mocha that was running tests compiled by webpack.
presets: ['es2015', 'stage-0']
To make my async/await in tests work all I had to do is use mocha with the --require babel-polyfill option:
async/await
--require babel-polyfill
mocha --require babel-polyfill