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'