Semi-opinionated preset for Babel based on
await transpilation instead of
generators. Also includes configuration options for using Bluebird as the
Promise library, targeting Electron, and setting a stage ( ie.
npm i babel-preset-modern-async
You can also pass in a configuration object ( configuration intensifies ):
The above are the default options, the bulk of which come from
fast-async. The rest:
When set to true, many plugins will be excluded that the Electron environment natively supports. Similar to the
Determines the Promise implementation, which is left native (or whatever you use at runtime) when this option is anything but
'bluebird'(currently the only option with any affect). When set to
bluebirdlibrary is automatically inserted and all Promise references use it without further configuration.
bluebirdlibrary is not a dependency of this preset. If you intend to use this option, you must install it yourself.
A number representing the ES feature stage to use in addition to the
latestpreset. These correspond to the Babel
More advanced configuration notes are in progress.
MIT © Bo Lingen / citycide