import { initDev } from './dev' ; import { compatUtils , createApp , Transition , TransitionGroup , KeepAlive , DeprecationTypes , vShow , vModelDynamic } from '@vue/runtime-dom' ; import { extend } from '@vue/shared' ; if ( __DEV__ ) { initDev ( ) ; } import * as runtimeDom from '@vue/runtime-dom' ; function wrappedCreateApp ( ... args ) { const app = createApp ( ... args ) ; if ( compatUtils . isCompatEnabled ( DeprecationTypes . RENDER_FUNCTION , null ) ) { app . component ( '__compat__transition' , Transition ) ; app . component ( '__compat__transition-group' , TransitionGroup ) ; app . component ( '__compat__keep-alive' , KeepAlive ) ; app . _context . directives . show = vShow ; app . _context . directives . model = vModelDynamic ; } return app ; } export function createCompatVue ( ) { const Vue = compatUtils . createCompatVue ( createApp , wrappedCreateApp ) ; extend ( Vue , runtimeDom ) ; return Vue ; }