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'