Skip to content

Commit

Permalink
fix: fix ssr env detection in weex (vuejs#7375)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanks10100 authored and aJean committed Aug 19, 2020
1 parent c41f65c commit 9f659e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/util/env.js
Expand Up @@ -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'
Expand Down

0 comments on commit 9f659e8

Please sign in to comment.