From 3eb37acf98e2d9737de897ebe7bdb7e9576bcc21 Mon Sep 17 00:00:00 2001 From: Hanks Date: Thu, 8 Mar 2018 04:37:14 +0800 Subject: [PATCH] fix: fix ssr env detection in weex (#7375) --- src/core/util/env.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/util/env.js b/src/core/util/env.js index dc332e280dc..07cadd9cf9a 100644 --- a/src/core/util/env.js +++ b/src/core/util/env.js @@ -38,7 +38,7 @@ let _isServer export const isServerRendering = () => { if (_isServer === undefined) { /* istanbul ignore if */ - if (!inBrowser && typeof global !== 'undefined') { + if (!inBrowser && !inWeex && typeof global !== 'undefined') { // detect presence of vue-server-renderer and avoid // Webpack shimming the process _isServer = global['process'].env.VUE_ENV === 'server'