mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
refactor: renderToString now returns a Promise if no callback is passed
This commit is contained in:
parent
efd044fad6
commit
f8bc7e2383
@ -3,7 +3,6 @@ import serialize from 'serialize-javascript'
|
||||
import generateETag from 'etag'
|
||||
import fresh from 'fresh'
|
||||
import Tapable from 'tappable'
|
||||
import pify from 'pify'
|
||||
import serveStatic from 'serve-static'
|
||||
import compression from 'compression'
|
||||
import _ from 'lodash'
|
||||
@ -167,9 +166,6 @@ export default class Renderer extends Tapable {
|
||||
runInNewContext: false,
|
||||
basedir: this.options.rootDir
|
||||
}, this.options.render.bundleRenderer))
|
||||
|
||||
// Promisify renderToString
|
||||
this.bundleRenderer.renderToString = pify(this.bundleRenderer.renderToString)
|
||||
}
|
||||
|
||||
useMiddleware (m) {
|
||||
|
Loading…
Reference in New Issue
Block a user