From: Evan You Date: Thu, 11 Jan 2024 10:30:23 +0000 (+0800) Subject: fix(build): avoid accessing __FEATURE_PROD_DEVTOOLS__ flag in root scope X-Git-Tag: v3.4.9~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfd9654665890d1bc7129f6e3c2faaa5b1f28f72;p=thirdparty%2Fvuejs%2Fcore.git fix(build): avoid accessing __FEATURE_PROD_DEVTOOLS__ flag in root scope --- diff --git a/packages/runtime-core/src/index.ts b/packages/runtime-core/src/index.ts index 7d9bd102fb..7fbe58446f 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'