mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-03 20:47:36 +08:00
avoid ssr build warning when using minified build
This commit is contained in:
parent
92473853dd
commit
5fa45c3bf8
@ -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…
Reference in New Issue
Block a user