17 lines
436 B
TypeScript
Raw Normal View History

import { setDevtoolsHook } from '@vue/runtime-dom'
import { getGlobalThis } from '@vue/shared'
2020-07-17 00:18:52 +02:00
export function initDev() {
const target = getGlobalThis()
2020-07-17 00:18:52 +02:00
target.__VUE__ = true
2020-07-17 00:18:52 +02:00
setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__)
if (__BROWSER__) {
console.info(
2020-07-17 00:18:52 +02:00
`You are running a development build of Vue.\n` +
`Make sure to use the production build (*.prod.js) when deploying for production.`
)
}
}