Extend babel.config.js for async/await (ReferenceError: Can't find variable: regeneratorRuntime)

Here’s something I just stumbled upon…

Just in case you try to use async/await - features and npm start throws :

ReferenceError: Can't find variable: regeneratorRuntime

You can have Babel to transpile correctly, if you change Babel transform configuration to:

"plugins": [
        "regenerator": true

@nolimits4web: this might be helpful to add to the F7-cli (babel.config.js) - or mention in the readme.

Make sense, adding it :slight_smile:

And looks like it just enough to specify it without options like so:

"plugins": [

Yes - it seems regenerator default value is true :ok_hand: