1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-02 14:26:28 +02:00

perf(frontend): avoid needless AsyncComponentWrapper

This commit is contained in:
syuilo
2025-03-29 15:33:19 +09:00
parent 1af4081090
commit 490222fb78
3 changed files with 10 additions and 11 deletions

View File

@@ -29,7 +29,7 @@ import { fetchCustomEmojis } from '@/custom-emojis.js';
import { prefer } from '@/preferences.js';
import { $i } from '@/i.js';
export async function common(createVue: () => App<Element>) {
export async function common(createVue: () => Promise<App<Element>>) {
console.info(`Misskey v${version}`);
if (_DEV_) {
@@ -263,7 +263,7 @@ export async function common(createVue: () => App<Element>) {
});
});
const app = createVue();
const app = await createVue();
if (_DEV_) {
app.config.performance = true;