|
@@ -36,7 +36,8 @@ import {
|
|
|
NOOP,
|
|
NOOP,
|
|
|
hasOwn,
|
|
hasOwn,
|
|
|
invokeArrayFns,
|
|
invokeArrayFns,
|
|
|
- isArray
|
|
|
|
|
|
|
+ isArray,
|
|
|
|
|
+ getGlobalThis
|
|
|
} from '@vue/shared'
|
|
} from '@vue/shared'
|
|
|
import {
|
|
import {
|
|
|
queueJob,
|
|
queueJob,
|
|
@@ -75,7 +76,8 @@ import { ComponentPublicInstance } from './componentPublicInstance'
|
|
|
import {
|
|
import {
|
|
|
devtoolsComponentAdded,
|
|
devtoolsComponentAdded,
|
|
|
devtoolsComponentRemoved,
|
|
devtoolsComponentRemoved,
|
|
|
- devtoolsComponentUpdated
|
|
|
|
|
|
|
+ devtoolsComponentUpdated,
|
|
|
|
|
+ setDevtoolsHook
|
|
|
} from './devtools'
|
|
} from './devtools'
|
|
|
import { initFeatureFlags } from './featureFlags'
|
|
import { initFeatureFlags } from './featureFlags'
|
|
|
import { isAsyncWrapper } from './apiAsyncComponent'
|
|
import { isAsyncWrapper } from './apiAsyncComponent'
|
|
@@ -430,6 +432,12 @@ function baseCreateRenderer(
|
|
|
initFeatureFlags()
|
|
initFeatureFlags()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
|
|
|
|
|
+ const target = getGlobalThis()
|
|
|
|
|
+ target.__VUE__ = true
|
|
|
|
|
+ setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__)
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
const {
|
|
const {
|
|
|
insert: hostInsert,
|
|
insert: hostInsert,
|
|
|
remove: hostRemove,
|
|
remove: hostRemove,
|