fix: fix ssr env detection in weex (#7375)

This commit is contained in:
Hanks 2018-03-08 04:37:14 +08:00 committed by Evan You
parent aeebf0de90
commit 3eb37acf98
1 changed files with 1 additions and 1 deletions

View File

@ -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'