refactor: setup

This commit is contained in:
Anthony Fu 2022-12-28 04:50:29 +01:00
parent 970b6538e2
commit 3079867e2a
7 changed files with 38 additions and 42 deletions

9
plugins/setup-emojis.ts Normal file
View file

@ -0,0 +1,9 @@
export default defineNuxtPlugin(() => {
if (process.server)
return
const promise = import('@emoji-mart/data').then(r => r.default)
import('emoji-mart').then(r => r.init({
data: () => promise,
}))
})