Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | 84x 84x | import { getGlobalThis } from '@vue/shared' /** * This is only called in esm-bundler builds. * It is called when a renderer is created, in `baseCreateRenderer` so that * importing runtime-core is side-effects free. * * istanbul-ignore-next */ export function initFeatureFlags() { const needWarn = [] Iif (typeof __FEATURE_OPTIONS_API__ !== 'boolean') { __DEV__ && needWarn.push(`__VUE_OPTIONS_API__`) getGlobalThis().__VUE_OPTIONS_API__ = true } Iif (typeof __FEATURE_PROD_DEVTOOLS__ !== 'boolean') { __DEV__ && needWarn.push(`__VUE_PROD_DEVTOOLS__`) getGlobalThis().__VUE_PROD_DEVTOOLS__ = false } Iif (__DEV__ && needWarn.length) { const multi = needWarn.length > 1 console.warn( `Feature flag${multi ? `s` : ``} ${needWarn.join(', ')} ${ multi ? `are` : `is` } not explicitly defined. You are running the esm-bundler build of Vue, ` + `which expects these compile-time feature flags to be globally injected ` + `via the bundler config in order to get better tree-shaking in the ` + `production bundle.\n\n` + `For more details, see https://link.vuejs.org/feature-flags.` ) } } |