chore: remove unnecessary checks

This commit is contained in:
Clark Du 2019-03-05 17:07:05 +00:00
parent 43709fda15
commit a188f07f19
2 changed files with 2 additions and 2 deletions

View File

@ -282,7 +282,7 @@ export function getNuxtConfig(_options) {
} }
// Disable CSS extraction due to incompatibility with thread-loader // Disable CSS extraction due to incompatibility with thread-loader
if (options.build && options.build.extractCSS && options.build.parallel) { if (options.build.extractCSS && options.build.parallel) {
options.build.parallel = false options.build.parallel = false
consola.warn('extractCSS cannot work with parallel build due to limited work pool in thread-loader') consola.warn('extractCSS cannot work with parallel build due to limited work pool in thread-loader')
} }

View File

@ -440,7 +440,7 @@ export default class VueRenderer {
// context.spa // context.spa
if (context.spa === undefined) { if (context.spa === undefined) {
// TODO: Remove reading from context.res in Nuxt3 // TODO: Remove reading from context.res in Nuxt3
context.spa = !this.SSR || context.spa || req.spa || (context.res && context.res.spa) context.spa = !this.SSR || req.spa || (context.res && context.res.spa)
} }
// context.modern // context.modern