mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-21 03:30:42 +00:00
chore: expose MarkerIdAssigner from plugin
This commit is contained in:
@@ -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<MarkerIdAssigner> {
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user