Skip to content

Commit a8f9cf6

Browse files
Hanks10100hefeng
authored and
hefeng
committed
fix: fix ssr env detection in weex (vuejs#7375)
1 parent 6bfe729 commit a8f9cf6

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)