Skip to content

Commit b60182d

Browse files
committed
remove no longer relevant ssr build check (close #4680)
1 parent 9b23b4c commit b60182d

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/server/render.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ export function createRenderFunction (
262262
write: (text: string, next: Function) => void,
263263
done: Function
264264
) {
265-
checkBuild(component)
266265
warned = Object.create(null)
267266
const context = {
268267
activeInstance: component,
@@ -277,23 +276,3 @@ export function createRenderFunction (
277276
renderNode(component._render(), true, context)
278277
}
279278
}
280-
281-
function checkBuild (component) {
282-
let Vue: any = component.constructor
283-
while (Vue.super) {
284-
Vue = Vue.super
285-
}
286-
if (Vue.compile && Vue.config.devtools !== false) {
287-
console.error(
288-
red(`\n[vue-server-renderer] You are using the standalone build (vue/dist/vue.js) for ` +
289-
`server-side rendering. It is recommended to use the CommonJS build ` +
290-
`(vue/dist/vue.common.js) instead so that the code can run in ` +
291-
`production mode by setting NODE_ENV=production. The server renderer ` +
292-
`supports the template option regardless of what build you are using.\n`)
293-
)
294-
}
295-
}
296-
297-
function red (str) {
298-
return '\u001B[1m\u001B[31m' + str + '\u001B[39m\u001B[22m'
299-
}

0 commit comments

Comments
 (0)