mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-04-27 11:02:54 +02:00
chore: expose MarkerIdAssigner from plugin
This commit is contained in:
parent
6c114d3021
commit
88c6d820f8
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue