Skip to content

Commit

Permalink
fix(build): avoid accessing __FEATURE_PROD_DEVTOOLS__ flag in root scope
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 11, 2024
1 parent bceccf9 commit dfd9654
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/runtime-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit dfd9654

Please sign in to comment.