From 88c6d820f8635c35f1c15b4aac0987075d7cf8aa Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Fri, 4 Apr 2025 03:32:46 +0900 Subject: [PATCH] chore: expose MarkerIdAssigner from plugin --- packages/frontend/lib/vite-plugin-create-search-index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/frontend/lib/vite-plugin-create-search-index.ts b/packages/frontend/lib/vite-plugin-create-search-index.ts index bbb6549553..e8ffec74b3 100644 --- a/packages/frontend/lib/vite-plugin-create-search-index.ts +++ b/packages/frontend/lib/vite-plugin-create-search-index.ts @@ -1455,7 +1455,7 @@ export async function generateSearchIndex(options: Options, assigner: MarkerIdAs } // Rollup プラグインとして export -export default function pluginCreateSearchIndex(options: Options): Plugin { +export default function pluginCreateSearchIndex(options: Options): Plugin { const assigner = new MarkerIdAssigner(); const isDevServer = process.env.NODE_ENV === 'development'; // 開発サーバーかどうか @@ -1464,6 +1464,7 @@ export default function pluginCreateSearchIndex(options: Options): Plugin { return { name: 'createSearchIndex', enforce: 'pre', + api: assigner, async buildStart() { if (!isDevServer) {