webpack-async-await
v1.1.0
Published
A webpack Compiler plugin which understands the ES7 keywords async and await
Downloads
346
Readme
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 [email protected], for versions prior to beta.23, use [email protected]
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