fix: remove unnecessary isDev in template/server

This commit is contained in:
Clark Du 2019-01-24 14:01:33 +00:00
parent 2d4d294178
commit a51ba8dd93
1 changed files with 1 additions and 3 deletions

View File

@ -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))