octatone / koa-webpack-hot-middleware

47 stars 9 forks source link

koa deprecated Support for generators will be removed in v3 #11

Open StefanoSega opened 6 years ago

StefanoSega commented 6 years ago

this code:

const webpackHotMiddleware = require('koa-webpack-hot-middleware');

const compiler = webpack(config[0]);
koaApp.use(webpackHotMiddleware(compiler));

generates this warning with the latest Koa:

koa deprecated Support for generators will be removed in v3. See the documentation for examples of how to convert old middleware https://github.com/koajs/koa/blob/master/docs/migration.md

DoNaEMan commented 5 years ago

you may need koa-convert