Set back next

This commit is contained in:
Sébastien Chopin 2017-07-30 19:48:48 +02:00
parent a17c551fca
commit 8e3bd5ffe6

View File

@ -71,7 +71,6 @@ export default class Renderer extends Tapable {
async loadResources (_fs = fs) {
let distPath = resolve(this.options.buildDir, 'dist')
let updated = []
resourceMap.forEach(({ key, fileName, transform }) => {
@ -95,7 +94,6 @@ export default class Renderer extends Tapable {
this.resources[key] = data
updated.push(key)
})
if (updated.length > 0) {
// debug('Updated', updated.join(', '), isServer)
this.createRenderer()
@ -264,11 +262,11 @@ export default class Renderer extends Tapable {
res.end(html, 'utf8')
return html
} catch (err) {
this.errorMiddleware(err, req, res, next, context)
next(this.errorMiddleware(err, req, res, next, context))
}
}
async errorMiddleware (err, req, res, next, context) {
errorMiddleware (err, req, res, next, context) {
/* istanbul ignore if */
if (context && context.redirected) {
console.error(err) // eslint-disable-line no-console