I\' ve come across this strange occurrence of:
ReferenceError: regeneratorRuntime is not defined
... which I\'ve managed to reproduce in a very minima
Also you could do the following with es2015 preset and transform-regenerator plugin:
{
"presets": ["es2015"],
'plugins': [
'transform-regenerator'
]
}
let regeneratorRuntime = require("regenerator-runtime");
// You code with ES6 generators
P.S. Of course you should install babel-plugin-transform-regenerator npm package.