mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix: remove unnecessary isDev in template/server
This commit is contained in:
parent
2d4d294178
commit
a51ba8dd93
@ -12,8 +12,6 @@ Vue.component('NLink', NuxtLink)
|
|||||||
const debug = require('debug')('nuxt:render')
|
const debug = require('debug')('nuxt:render')
|
||||||
debug.color = 4 // force blue color
|
debug.color = 4 // force blue color
|
||||||
|
|
||||||
const isDev = <%= isDev %><%= isTest ? '// eslint-disable-line no-unused-vars' : '' %>
|
|
||||||
|
|
||||||
const noopApp = () => new Vue({ render: h => h('div') })
|
const noopApp = () => new Vue({ render: h => h('div') })
|
||||||
|
|
||||||
const createNext = ssrContext => (opts) => {
|
const createNext = ssrContext => (opts) => {
|
||||||
@ -84,7 +82,7 @@ export default async (ssrContext) => {
|
|||||||
return renderErrorPage()
|
return renderErrorPage()
|
||||||
}
|
}
|
||||||
|
|
||||||
<% if (isDev) { %>const s = isDev && Date.now()<% } %>
|
<% if (isDev) { %>const s = Date.now()<% } %>
|
||||||
|
|
||||||
// Components are already resolved by setContext -> getRouteData (app/utils.js)
|
// Components are already resolved by setContext -> getRouteData (app/utils.js)
|
||||||
const Components = getMatchedComponents(router.match(ssrContext.url))
|
const Components = getMatchedComponents(router.match(ssrContext.url))
|
||||||
|
Loading…
Reference in New Issue
Block a user