mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
make it more compatible with other frameworks
make it use able with async with await
This commit is contained in:
parent
e016b5d184
commit
d17b12eac5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user