webpack-async-await

1.1.0 • Public • Published

webpack-async-await

A plugin for webpack understands the ES7 keywords async and await, making building code for Chrome 53, Edge 14 and other ES7-capable platforms simple.

NB: webpack-async-await@^1.1.0 works with webpack@2.1.0-beta.23, for versions prior to beta.23, use webpack-async-await@1.0.4

Usage:


var webpack = require('webpack');
var AsyncAwaitPlugin = require('webpack-async-await') ;

var options = { } ; // See https://github.com/MatAtBread/acorn-es7-plugin#options--compliance

webpack({
    plugins: [
      new AsyncAwaitPlugin(options)
    ],
    
    ...
}).run(function(err,stats){
    ...
});

Further details on the available options can be found at https://github.com/MatAtBread/acorn-es7-plugin#options--compliance

Readme

Keywords

Package Sidebar

Install

npm i webpack-async-await

Weekly Downloads

39

Version

1.1.0

License

MIT

Last publish

Collaborators

  • matatbread