refactor: setup
This commit is contained in:
parent
970b6538e2
commit
3079867e2a
7 changed files with 38 additions and 42 deletions
9
plugins/setup-emojis.ts
Normal file
9
plugins/setup-emojis.ts
Normal 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,
|
||||
}))
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue