From dfd9654665890d1bc7129f6e3c2faaa5b1f28f72 Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 11 Jan 2024 18:30:23 +0800 Subject: [PATCH] fix(build): avoid accessing __FEATURE_PROD_DEVTOOLS__ flag in root scope --- packages/runtime-core/src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/runtime-core/src/index.ts b/packages/runtime-core/src/index.ts index 7d9bd102fb3..7fbe58446f7 100644 --- a/packages/runtime-core/src/index.ts +++ b/packages/runtime-core/src/index.ts @@ -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'