forked from Mirrors/elk
chore: fix build error
This commit is contained in:
parent
8f68fa12e4
commit
2d4f5ddf76
1 changed files with 5 additions and 4 deletions
|
@ -1,7 +1,6 @@
|
||||||
import { pwaInfo } from 'virtual:pwa-info'
|
import { pwaInfo } from 'virtual:pwa-info'
|
||||||
import type { Link } from '@unhead/schema'
|
import type { Link } from '@unhead/schema'
|
||||||
import type { Directions } from 'vue-i18n-routing'
|
import type { Directions } from 'vue-i18n-routing'
|
||||||
import { init as initEmojis } from 'emoji-mart'
|
|
||||||
import { APP_NAME, STORAGE_KEY_LANG } from '~/constants'
|
import { APP_NAME, STORAGE_KEY_LANG } from '~/constants'
|
||||||
import type { LocaleObject } from '#i18n'
|
import type { LocaleObject } from '#i18n'
|
||||||
|
|
||||||
|
@ -76,8 +75,10 @@ export async function setupI18n() {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function setupEmojis() {
|
export async function setupEmojis() {
|
||||||
initEmojis({
|
const promise = import('@emoji-mart/data').then(r => r.default)
|
||||||
data: () => import('@emoji-mart/data').then(r => r.default),
|
const { init } = await import('emoji-mart')
|
||||||
|
init({
|
||||||
|
data: () => promise,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue