webpack-async-await

v1.1.0
A webpack Compiler plugin which understands the ES7 keywords async and await
webpack ES7 async await

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

npm i webpack-async-await

Metadata

  • MIT
  • Whatever
  • https://github.com/matAtWork
  • released 9/26/2016

Downloads

Maintainers