Skip to content

Commit 9e27bce

Browse files
committed
chore(plugin-docsearch): store options in a const
1 parent 177361a commit 9e27bce

File tree

1 file changed

+2
-1
lines changed
  • ecosystem/plugin-docsearch/src/client/components

1 file changed

+2
-1
lines changed

ecosystem/plugin-docsearch/src/client/components/Docsearch.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { useDocsearchShim } from '../composables/index.js'
88

99
declare const __DOCSEARCH_INJECT_STYLES__: boolean
1010
declare const __DOCSEARCH_OPTIONS__: DocsearchOptions
11+
const options = __DOCSEARCH_OPTIONS__
1112

1213
if (__DOCSEARCH_INJECT_STYLES__) {
1314
import('@docsearch/css')
@@ -26,7 +27,7 @@ export const Docsearch = defineComponent({
2627
options: {
2728
type: Object as PropType<DocsearchOptions>,
2829
required: false,
29-
default: () => __DOCSEARCH_OPTIONS__,
30+
default: () => options,
3031
},
3132
},
3233

0 commit comments

Comments
 (0)