fix: init devtools after feature flag checks

This commit is contained in:
Evan You
2021-02-24 15:59:38 -05:00
parent d9f91e26f9
commit d0ea74556f
4 changed files with 13 additions and 11 deletions

View File

@@ -1,12 +1,6 @@
import { setDevtoolsHook, initCustomFormatter } from '@vue/runtime-dom'
import { getGlobalThis } from '@vue/shared'
import { initCustomFormatter } from '@vue/runtime-dom'
export function initDev() {
const target = getGlobalThis()
target.__VUE__ = true
setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__)
if (__BROWSER__) {
if (!__ESM_BUNDLER__) {
console.info(