summaryrefslogtreecommitdiff
path: root/packages/frontend/lib
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-12-11 23:08:26 +0900
committerGitHub <noreply@github.com>2025-12-11 23:08:26 +0900
commit8e6fffee68cfa36f66c0e10f84f159d1ade72e70 (patch)
tree1ec8cbb51dd86ae344b7dffc564a5cf1cd259032 /packages/frontend/lib
parentfix(sw): オフライン時のfetch timeout処理を実装 (#16952) (diff)
downloadmisskey-8e6fffee68cfa36f66c0e10f84f159d1ade72e70.tar.gz
misskey-8e6fffee68cfa36f66c0e10f84f159d1ade72e70.tar.bz2
misskey-8e6fffee68cfa36f66c0e10f84f159d1ade72e70.zip
enhance: use native glob (#16965)
* enhance: use native glob * remove tiny-glob * remove fast-glob * refactor * fix: use async glob if possible --------- Co-authored-by: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com>
Diffstat (limited to 'packages/frontend/lib')
-rw-r--r--packages/frontend/lib/vite-plugin-create-search-index.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/frontend/lib/vite-plugin-create-search-index.ts b/packages/frontend/lib/vite-plugin-create-search-index.ts
index f17b43b0e3..cfbba0823c 100644
--- a/packages/frontend/lib/vite-plugin-create-search-index.ts
+++ b/packages/frontend/lib/vite-plugin-create-search-index.ts
@@ -16,7 +16,6 @@ import {
type PluginOption
} from 'vite';
import fs from 'node:fs';
-import { glob } from 'glob';
import JSON5 from 'json5';
import MagicString, { SourceMap } from 'magic-string';
import path from 'node:path'
@@ -724,7 +723,7 @@ export function pluginCreateSearchIndexVirtualModule(options: Options, asigner:
async load(id) {
if (id == '\0' + allSearchIndexFile) {
- const files = await Promise.all(options.targetFilePaths.map(async (filePathPattern) => await glob(filePathPattern))).then(paths => paths.flat());
+ const files = options.targetFilePaths.map((filePathPattern) => fs.globSync(filePathPattern)).flat();
let generatedFile = '';
let arrayElements = '';
for (let file of files) {