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
1 changed files with 1 additions and 1 deletions

View File

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