]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(build): avoid accessing __FEATURE_PROD_DEVTOOLS__ flag in root scope
authorEvan You <yyx990803@gmail.com>
Thu, 11 Jan 2024 10:30:23 +0000 (18:30 +0800)
committerEvan You <yyx990803@gmail.com>
Thu, 11 Jan 2024 10:30:23 +0000 (18:30 +0800)
packages/runtime-core/src/index.ts

index 7d9bd102fb3699a52babf47f348d0b7dc03b0b1f..7fbe58446f7f0238e5165f1fbe7953d027c44f7a 100644 (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'