diff --git a/packages/vue/src/index.ts b/packages/vue/src/index.ts index c810d03e..62445c0f 100644 --- a/packages/vue/src/index.ts +++ b/packages/vue/src/index.ts @@ -7,7 +7,9 @@ import * as runtimeDom from '@vue/runtime-dom' import { isString, NOOP, generateCodeFrame, extend } from '@vue/shared' import { InternalRenderFunction } from 'packages/runtime-core/src/component' -__DEV__ && initDev() +if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) { + initDev() +} const compileCache: Record = Object.create(null) diff --git a/packages/vue/src/runtime.ts b/packages/vue/src/runtime.ts index b78d60c9..d69ab48b 100644 --- a/packages/vue/src/runtime.ts +++ b/packages/vue/src/runtime.ts @@ -3,7 +3,9 @@ import { initDev } from './dev' import { warn } from '@vue/runtime-dom' -__DEV__ && initDev() +if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) { + initDev() +} export * from '@vue/runtime-dom'