make it more compatible with other frameworks

make it use able with async with await
This commit is contained in:
Mirodil 2017-01-22 18:35:44 -05:00 committed by GitHub
parent e016b5d184
commit d17b12eac5

View File

@ -20,7 +20,7 @@ export function render (req, res) {
} }
const self = this const self = this
const context = getContext(req, res) const context = getContext(req, res)
co(function * () { return co(function * () {
if (self.dev) { if (self.dev) {
// Call webpack middlewares only in development // Call webpack middlewares only in development
yield self.webpackDevMiddleware(req, res) yield self.webpackDevMiddleware(req, res)