Browse Source

avoid ssr build warning when using minified build

dev
Evan You 8 years ago
parent
commit
5fa45c3bf8
  1. 4
      src/server/render.js

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

Loading…
Cancel
Save