From 2bb5625eb4b657e12514998874a6d0c79d716e29 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Sat, 20 Sep 2025 14:05:18 +0800 Subject: [PATCH] chore: tweak --- .../plugin-search/src/client/composables/searchIndex.ts | 5 +---- plugins/plugin-search/src/node/index.ts | 7 +------ 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/plugins/plugin-search/src/client/composables/searchIndex.ts b/plugins/plugin-search/src/client/composables/searchIndex.ts index 91b77f32..0155e92e 100644 --- a/plugins/plugin-search/src/client/composables/searchIndex.ts +++ b/plugins/plugin-search/src/client/composables/searchIndex.ts @@ -13,10 +13,7 @@ export function useSearchIndex(): ShallowRef { } if (__VUEPRESS_DEV__ && (import.meta.webpackHot || import.meta.hot)) { - __VUE_HMR_RUNTIME__.updateSearchIndex = (data) => { - searchIndexData.value = data - } - __VUE_HMR_RUNTIME__.updateSearchIndex = (data) => { + __VUE_HMR_RUNTIME__.updateSearchIndex = (data: SearchIndexData) => { searchIndexData.value = data } } diff --git a/plugins/plugin-search/src/node/index.ts b/plugins/plugin-search/src/node/index.ts index 504ca821..c9a3fdc3 100644 --- a/plugins/plugin-search/src/node/index.ts +++ b/plugins/plugin-search/src/node/index.ts @@ -1,8 +1,3 @@ -import { searchPlugin } from './searchPlugin.js' - export * from '../shared/index.js' export { prepareSearchIndex } from './prepareSearchIndex.js' - -export { - searchPlugin, -} +export { searchPlugin } from './searchPlugin.js'