Skip to content

Commit dfd9654

Browse files
committed
fix(build): avoid accessing __FEATURE_PROD_DEVTOOLS__ flag in root scope
1 parent bceccf9 commit dfd9654

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/runtime-core/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,13 @@ import {
161161
} from './devtools'
162162

163163
export const devtools = (
164-
__DEV__ || __FEATURE_PROD_DEVTOOLS__ ? _devtools : undefined
164+
__DEV__ || __ESM_BUNDLER__ ? _devtools : undefined
165165
) as DevtoolsHook
166166
export const setDevtoolsHook = (
167-
__DEV__ || __FEATURE_PROD_DEVTOOLS__ ? _setDevtoolsHook : NOOP
167+
__DEV__ || __ESM_BUNDLER__ ? _setDevtoolsHook : NOOP
168168
) as typeof _setDevtoolsHook
169169

170-
// Types -------------------------------------------------------------------------
170+
// Types -----------------------------------------------------------------------
171171

172172
import type { VNode } from './vnode'
173173
import type { ComponentInternalInstance } from './component'

0 commit comments

Comments
 (0)