Fix Vite build warning (#39562)

This commit is contained in:
Echo
2026-06-22 17:37:47 +02:00
committed by GitHub
parent 5e5a1f4fe0
commit a952541474

View File

@@ -5,6 +5,7 @@ import type { ApiCustomEmojiJSON } from '@/mastodon/api_types/custom_emoji';
import { openEmojiDB } from './db-schema';
import type { Database } from './db-schema';
import { importEmojiData } from './loader';
import { localeToSegmenter, toSupportedLocale } from './locale';
import {
extractTokens,
@@ -437,7 +438,6 @@ async function toLoadedLocale(localeString: string) {
}
if (!loadedLocales.has(locale)) {
log('Locale %s not loaded, importing...', locale);
const { importEmojiData } = await import('./loader');
await importEmojiData(locale);
return locale;
}