fix(build): avoid accessing __FEATURE_PROD_DEVTOOLS__ flag in root scope

This commit is contained in:
Evan You 2024-01-11 18:30:23 +08:00
parent bceccf9e21
commit dfd9654665
1 changed files with 3 additions and 3 deletions

View File

@ -161,13 +161,13 @@ import {
} from './devtools'
export const devtools = (
__DEV__ || __FEATURE_PROD_DEVTOOLS__ ? _devtools : undefined
__DEV__ || __ESM_BUNDLER__ ? _devtools : undefined
) as DevtoolsHook
export const setDevtoolsHook = (
__DEV__ || __FEATURE_PROD_DEVTOOLS__ ? _setDevtoolsHook : NOOP
__DEV__ || __ESM_BUNDLER__ ? _setDevtoolsHook : NOOP
) as typeof _setDevtoolsHook
// Types -------------------------------------------------------------------------
// Types -----------------------------------------------------------------------
import type { VNode } from './vnode'
import type { ComponentInternalInstance } from './component'