avoid ssr build warning when using minified build

This commit is contained in:
Evan You 2016-12-12 14:22:44 -05:00
parent 92473853dd
commit 5fa45c3bf8

View File

@ -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 ` +