diff --git a/packages/reactivity/src/index.ts b/packages/reactivity/src/index.ts index adea81042b3..0ecc27323a6 100644 --- a/packages/reactivity/src/index.ts +++ b/packages/reactivity/src/index.ts @@ -80,7 +80,7 @@ export { reactiveReadArray, shallowReadArray } from './arrayInstrumentations' export { TrackOpTypes, TriggerOpTypes, ReactiveFlags } from './constants' export { baseWatch, - getCurrentWatcher as getCurrentEffect, + getCurrentWatcher, traverse, onWatcherCleanup, BaseWatchErrorCodes, diff --git a/packages/runtime-core/src/index.ts b/packages/runtime-core/src/index.ts index 80ceecc7f3f..d274ef4f067 100644 --- a/packages/runtime-core/src/index.ts +++ b/packages/runtime-core/src/index.ts @@ -28,6 +28,7 @@ export { // effect effect, stop, + getCurrentWatcher, onWatcherCleanup, ReactiveEffect, // effect scope