File tree Expand file tree Collapse file tree 3 files changed +79
-7
lines changed Expand file tree Collapse file tree 3 files changed +79
-7
lines changed Original file line number Diff line number Diff line change 1+ import Vue from './vue.runtime.common.js'
2+ export default Vue
3+
4+ // this should be kept in sync with src/v3/index.ts
5+ export const {
6+ version,
7+
8+ // refs
9+ ref,
10+ shallowRef,
11+ isRef,
12+ toRef,
13+ toRefs,
14+ unref,
15+ proxyRefs,
16+ customRef,
17+ triggerRef,
18+ computed,
19+
20+ // reactive
21+ reactive,
22+ isReactive,
23+ isReadonly,
24+ isShallow,
25+ isProxy,
26+ shallowReactive,
27+ markRaw,
28+ toRaw,
29+ readonly,
30+ shallowReadonly,
31+
32+ // watch
33+ watch,
34+ watchEffect,
35+ watchPostEffect,
36+ watchSyncEffect,
37+
38+ // effectScope
39+ effectScope,
40+ onScopeDispose,
41+ getCurrentScope,
42+
43+ // provide / inject
44+ provide,
45+ inject,
46+
47+ // lifecycle
48+ onBeforeMount,
49+ onMounted,
50+ onBeforeUpdate,
51+ onUpdated,
52+ onUnmounted,
53+ onErrorCaptured,
54+ onActivated,
55+ onDeactivated,
56+ onServerPrefetch,
57+ onRenderTracked,
58+ onRenderTriggered,
59+
60+ // v2 only
61+ set,
62+ del,
63+
64+ // v3 compat
65+ h,
66+ getCurrentInstance,
67+ useSlots,
68+ useAttrs,
69+ mergeDefaults,
70+ nextTick,
71+ useCssModule,
72+ useCssVars,
73+ defineComponent,
74+ defineAsyncComponent
75+ } = Vue
Original file line number Diff line number Diff line change @@ -71,13 +71,6 @@ const builds = {
7171 format : 'es' ,
7272 banner
7373 } ,
74- // Runtime only ES modules build (for Node)
75- 'runtime-mjs' : {
76- entry : resolve ( 'web/entry-runtime-esm.ts' ) ,
77- dest : resolve ( 'dist/vue.runtime.mjs' ) ,
78- format : 'es' ,
79- banner
80- } ,
8174 // Runtime+compiler ES modules build (for bundlers)
8275 'full-esm' : {
8376 entry : resolve ( 'web/entry-runtime-with-compiler-esm.ts' ) ,
Original file line number Diff line number Diff line change 1+ /**
2+ * Note: also update dist/vue.runtime.mjs when adding new exports to this file.
3+ */
4+
15export const version : string = '__VERSION__'
26
37export {
You can’t perform that action at this time.
0 commit comments