Skip to content

Commit 88c6d82

Browse files
committed
chore: expose MarkerIdAssigner from plugin
1 parent 6c114d3 commit 88c6d82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/frontend/lib/vite-plugin-create-search-index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ export async function generateSearchIndex(options: Options, assigner: MarkerIdAs
14551455
}
14561456

14571457
// Rollup プラグインとして export
1458-
export default function pluginCreateSearchIndex(options: Options): Plugin {
1458+
export default function pluginCreateSearchIndex(options: Options): Plugin<MarkerIdAssigner> {
14591459
const assigner = new MarkerIdAssigner();
14601460
const isDevServer = process.env.NODE_ENV === 'development'; // 開発サーバーかどうか
14611461

@@ -1464,6 +1464,7 @@ export default function pluginCreateSearchIndex(options: Options): Plugin {
14641464
return {
14651465
name: 'createSearchIndex',
14661466
enforce: 'pre',
1467+
api: assigner,
14671468

14681469
async buildStart() {
14691470
if (!isDevServer) {

0 commit comments

Comments
 (0)