MCPcopy
hub / github.com/fanmingming/live / isServerRendering

Function isServerRendering

m3u8/vue.js:562–574  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

560 // vue-server-renderer can set VUE_ENV
561 var _isServer;
562 var isServerRendering = function () {
563 if (_isServer === undefined) {
564 /* istanbul ignore if */
565 if (!inBrowser && !inWeex && typeof global !== 'undefined') {
566 // detect presence of vue-server-renderer and avoid
567 // Webpack shimming the process
568 _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
569 } else {
570 _isServer = false;
571 }
572 }
573 return _isServer
574 };
575
576 // detect devtools
577 var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;

Callers 4

observeFunction · 0.85
initComputedFunction · 0.85
defineComputedFunction · 0.85
parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected