fix(devtools): init devtools in production (#2906)
This commit is contained in:
parent
143751d2bc
commit
4d9bcb768d
@ -7,7 +7,9 @@ import * as runtimeDom from '@vue/runtime-dom'
|
|||||||
import { isString, NOOP, generateCodeFrame, extend } from '@vue/shared'
|
import { isString, NOOP, generateCodeFrame, extend } from '@vue/shared'
|
||||||
import { InternalRenderFunction } from 'packages/runtime-core/src/component'
|
import { InternalRenderFunction } from 'packages/runtime-core/src/component'
|
||||||
|
|
||||||
__DEV__ && initDev()
|
if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
|
||||||
|
initDev()
|
||||||
|
}
|
||||||
|
|
||||||
const compileCache: Record<string, RenderFunction> = Object.create(null)
|
const compileCache: Record<string, RenderFunction> = Object.create(null)
|
||||||
|
|
||||||
|
@ -3,7 +3,9 @@
|
|||||||
import { initDev } from './dev'
|
import { initDev } from './dev'
|
||||||
import { warn } from '@vue/runtime-dom'
|
import { warn } from '@vue/runtime-dom'
|
||||||
|
|
||||||
__DEV__ && initDev()
|
if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
|
||||||
|
initDev()
|
||||||
|
}
|
||||||
|
|
||||||
export * from '@vue/runtime-dom'
|
export * from '@vue/runtime-dom'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user