mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 06:05:11 +00:00
fix: correct renderer.noSSR name
This commit is contained in:
parent
701190d796
commit
6990efc1bc
@ -117,8 +117,8 @@ export default class VueRenderer {
|
||||
// TODO: Enable baack when renderer initialzation was disabled for build only scripts
|
||||
// Currently this breaks normal nuxt build for first time
|
||||
// if (!this.context.options.dev) {
|
||||
// const invalidSSR = !this.NoSsr && key === 'serverBundle'
|
||||
// const invalidSPA = this.NoSsr && key === 'spaTemplate'
|
||||
// const invalidSSR = !this.noSSR && key === 'serverBundle'
|
||||
// const invalidSPA = this.noSSR && key === 'spaTemplate'
|
||||
// if (invalidSPA || invalidSSR) {
|
||||
// consola.fatal(`Could not load Nuxt renderer, make sure to build for production: builder.build() with dev option set to false.`)
|
||||
// }
|
||||
@ -166,12 +166,12 @@ export default class VueRenderer {
|
||||
}
|
||||
}
|
||||
|
||||
get NoSsr() {
|
||||
get noSSR() {
|
||||
return this.context.options.render.ssr === false
|
||||
}
|
||||
|
||||
get isReady() {
|
||||
if (this.NoSsr) {
|
||||
if (this.noSSR) {
|
||||
return Boolean(this.context.resources.spaTemplate)
|
||||
}
|
||||
|
||||
@ -186,7 +186,7 @@ export default class VueRenderer {
|
||||
}
|
||||
|
||||
// Required for SPA rendering
|
||||
if (this.NoSsr) {
|
||||
if (this.noSSR) {
|
||||
return Boolean(this.context.resources.spaTemplate)
|
||||
}
|
||||
|
||||
@ -203,8 +203,8 @@ export default class VueRenderer {
|
||||
// Create Meta Renderer
|
||||
this.renderer.spa = new SPAMetaRenderer(this)
|
||||
|
||||
// Skip following steps if NoSsr mode
|
||||
if (this.NoSsr) {
|
||||
// Skip following steps if noSSR mode
|
||||
if (this.noSSR) {
|
||||
return
|
||||
}
|
||||
|
||||
@ -262,7 +262,7 @@ export default class VueRenderer {
|
||||
const spa = context.spa || (res && res.spa)
|
||||
const ENV = this.context.options.env
|
||||
|
||||
if (this.NoSsr || spa) {
|
||||
if (this.noSSR || spa) {
|
||||
const {
|
||||
HTML_ATTRS,
|
||||
BODY_ATTRS,
|
||||
|
Loading…
Reference in New Issue
Block a user