File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,6 @@ export function createRenderFunction (
262
262
write : ( text : string , next : Function ) = > void ,
263
263
done : Function
264
264
) {
265
- checkBuild ( component )
266
265
warned = Object . create ( null )
267
266
const context = {
268
267
activeInstance : component ,
@@ -277,23 +276,3 @@ export function createRenderFunction (
277
276
renderNode ( component . _render ( ) , true , context )
278
277
}
279
278
}
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
- }
You can’t perform that action at this time.
0 commit comments