From a51ba8dd9343a5f18bb584b9e1bcbaffe8df5ef9 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Thu, 24 Jan 2019 14:01:33 +0000 Subject: [PATCH] fix: remove unnecessary isDev in template/server --- packages/vue-app/template/server.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/vue-app/template/server.js b/packages/vue-app/template/server.js index 126a045e5e..3e49084d1f 100644 --- a/packages/vue-app/template/server.js +++ b/packages/vue-app/template/server.js @@ -12,8 +12,6 @@ Vue.component('NLink', NuxtLink) const debug = require('debug')('nuxt:render') 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 createNext = ssrContext => (opts) => { @@ -84,7 +82,7 @@ export default async (ssrContext) => { 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) const Components = getMatchedComponents(router.match(ssrContext.url))