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) {