From 5fa45c3bf80100469039d3b9c160ddfdaf90f8ec Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 12 Dec 2016 14:22:44 -0500 Subject: [PATCH] avoid ssr build warning when using minified build --- src/server/render.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/render.js b/src/server/render.js index 9fa0dcad..b8968e59 100644 --- a/src/server/render.js +++ b/src/server/render.js @@ -279,11 +279,11 @@ export function createRenderFunction ( } function checkBuild (component) { - let Vue = component.constructor + let Vue: any = component.constructor while (Vue.super) { Vue = Vue.super } - if (Vue.compile) { + if (Vue.compile && Vue.config.devtools !== false) { console.error( red(`\n[vue-server-renderer] You are using the standalone build (vue/dist/vue.js) for ` + `server-side rendering. It is recommended to use the CommonJS build ` +