deprecated options.build.ssr

This commit is contained in:
Pooya Parsa 2017-06-20 01:33:55 +04:30
parent 9fe3f0d334
commit d9a01c25f1

View File

@ -149,7 +149,11 @@ export default class Renderer extends Tapable {
clientManifest: this.resources.clientManifest, clientManifest: this.resources.clientManifest,
runInNewContext: false, runInNewContext: false,
basedir: this.options.rootDir basedir: this.options.rootDir
}, this.options.render.ssr)) }, this.options.render.ssr, this.options.build.ssr))
if(this.options.build.ssr) {
console.warn('[nuxt] `build.ssr` is deprecated and will be removed in 1.0 release, please use `renderer.ssr` instead!')
}
// Promisify renderToString // Promisify renderToString
this.bundleRenderer.renderToString = pify(this.bundleRenderer.renderToString) this.bundleRenderer.renderToString = pify(this.bundleRenderer.renderToString)