Skip to content

Commit

Permalink
fix: fix ssr env detection in weex (#7375)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanks10100 authored and yyx990803 committed Mar 7, 2018
1 parent aeebf0d commit 3eb37ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/util/env.js
Original file line number Diff line number Diff line change
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 3eb37ac

Please # to comment.