mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
refactor: renderToString now returns a Promise if no callback is passed
This commit is contained in:
parent
7df46279bf
commit
c659f9bce4
@ -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