dev.ts 436 B

12345678910111213141516
  1. import { setDevtoolsHook } from '@vue/runtime-dom'
  2. import { getGlobalThis } from '@vue/shared'
  3. export function initDev() {
  4. const target = getGlobalThis()
  5. target.__VUE__ = true
  6. setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__)
  7. if (__BROWSER__) {
  8. console.info(
  9. `You are running a development build of Vue.\n` +
  10. `Make sure to use the production build (*.prod.js) when deploying for production.`
  11. )
  12. }
  13. }