Skip to content

Commit 3eb37ac

Browse files
Hanks10100yyx990803
authored andcommittedMar 7, 2018
fix: fix ssr env detection in weex (#7375)
1 parent aeebf0d commit 3eb37ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/util/env.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ let _isServer
3838
export const isServerRendering = () => {
3939
if (_isServer === undefined) {
4040
/* istanbul ignore if */
41-
if (!inBrowser && typeof global !== 'undefined') {
41+
if (!inBrowser && !inWeex && typeof global !== 'undefined') {
4242
// detect presence of vue-server-renderer and avoid
4343
// Webpack shimming the process
4444
_isServer = global['process'].env.VUE_ENV === 'server'

0 commit comments

Comments
 (0)
Please sign in to comment.