mirror of https://github.com/vuejs/vue.git
parent
559600f13d
commit
012e10c9ca
|
@ -0,0 +1,75 @@
|
||||||
|
import Vue from './vue.runtime.common.js'
|
||||||
|
export default Vue
|
||||||
|
|
||||||
|
// this should be kept in sync with src/v3/index.ts
|
||||||
|
export const {
|
||||||
|
version,
|
||||||
|
|
||||||
|
// refs
|
||||||
|
ref,
|
||||||
|
shallowRef,
|
||||||
|
isRef,
|
||||||
|
toRef,
|
||||||
|
toRefs,
|
||||||
|
unref,
|
||||||
|
proxyRefs,
|
||||||
|
customRef,
|
||||||
|
triggerRef,
|
||||||
|
computed,
|
||||||
|
|
||||||
|
// reactive
|
||||||
|
reactive,
|
||||||
|
isReactive,
|
||||||
|
isReadonly,
|
||||||
|
isShallow,
|
||||||
|
isProxy,
|
||||||
|
shallowReactive,
|
||||||
|
markRaw,
|
||||||
|
toRaw,
|
||||||
|
readonly,
|
||||||
|
shallowReadonly,
|
||||||
|
|
||||||
|
// watch
|
||||||
|
watch,
|
||||||
|
watchEffect,
|
||||||
|
watchPostEffect,
|
||||||
|
watchSyncEffect,
|
||||||
|
|
||||||
|
// effectScope
|
||||||
|
effectScope,
|
||||||
|
onScopeDispose,
|
||||||
|
getCurrentScope,
|
||||||
|
|
||||||
|
// provide / inject
|
||||||
|
provide,
|
||||||
|
inject,
|
||||||
|
|
||||||
|
// lifecycle
|
||||||
|
onBeforeMount,
|
||||||
|
onMounted,
|
||||||
|
onBeforeUpdate,
|
||||||
|
onUpdated,
|
||||||
|
onUnmounted,
|
||||||
|
onErrorCaptured,
|
||||||
|
onActivated,
|
||||||
|
onDeactivated,
|
||||||
|
onServerPrefetch,
|
||||||
|
onRenderTracked,
|
||||||
|
onRenderTriggered,
|
||||||
|
|
||||||
|
// v2 only
|
||||||
|
set,
|
||||||
|
del,
|
||||||
|
|
||||||
|
// v3 compat
|
||||||
|
h,
|
||||||
|
getCurrentInstance,
|
||||||
|
useSlots,
|
||||||
|
useAttrs,
|
||||||
|
mergeDefaults,
|
||||||
|
nextTick,
|
||||||
|
useCssModule,
|
||||||
|
useCssVars,
|
||||||
|
defineComponent,
|
||||||
|
defineAsyncComponent
|
||||||
|
} = Vue
|
|
@ -71,13 +71,6 @@ const builds = {
|
||||||
format: 'es',
|
format: 'es',
|
||||||
banner
|
banner
|
||||||
},
|
},
|
||||||
// Runtime only ES modules build (for Node)
|
|
||||||
'runtime-mjs': {
|
|
||||||
entry: resolve('web/entry-runtime-esm.ts'),
|
|
||||||
dest: resolve('dist/vue.runtime.mjs'),
|
|
||||||
format: 'es',
|
|
||||||
banner
|
|
||||||
},
|
|
||||||
// Runtime+compiler ES modules build (for bundlers)
|
// Runtime+compiler ES modules build (for bundlers)
|
||||||
'full-esm': {
|
'full-esm': {
|
||||||
entry: resolve('web/entry-runtime-with-compiler-esm.ts'),
|
entry: resolve('web/entry-runtime-with-compiler-esm.ts'),
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/**
|
||||||
|
* Note: also update dist/vue.runtime.mjs when adding new exports to this file.
|
||||||
|
*/
|
||||||
|
|
||||||
export const version: string = '__VERSION__'
|
export const version: string = '__VERSION__'
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
|
Loading…
Reference in New Issue