mirror of https://github.com/vuejs/vue.git
fix: fix ssr env detection in weex (#7375)
This commit is contained in:
parent
aeebf0de90
commit
3eb37acf98
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in New Issue