source-map-support
在使用babel-polyfill
后require('source-map-support').install()
引入source-mapbabel-register
12345// Javascript require hookrequire('babel-register')({presets: ['es2015', 'react', 'stage-0'],plugins: ['add-module-exports']})koa-convert
将koa1的generator转为await12const convert = require('koa-convert');app.use(convert(bodyparser));koa-webpack-dev-middleware
webpack中间件12345const compiler = webpack(config)app.use(convert(devMiddleware(compiler, {noInfo: true,publicPath: config.output.publicPath})))koa-webpack-hot-middleware
12const compiler = webpack(config)app.use(convert(hotMiddleware(compiler)))