Skip to content

Commit 5fa45c3

Browse files
committed
avoid ssr build warning when using minified build
1 parent 9247385 commit 5fa45c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/render.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,11 @@ export function createRenderFunction (
279279
}
280280

281281
function checkBuild (component) {
282-
let Vue = component.constructor
282+
let Vue: any = component.constructor
283283
while (Vue.super) {
284284
Vue = Vue.super
285285
}
286-
if (Vue.compile) {
286+
if (Vue.compile && Vue.config.devtools !== false) {
287287
console.error(
288288
red(`\n[vue-server-renderer] You are using the standalone build (vue/dist/vue.js) for ` +
289289
`server-side rendering. It is recommended to use the CommonJS build ` +

0 commit comments

Comments
 (0)