mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-11 09:30:56 +08:00
13 lines
330 B
TypeScript
13 lines
330 B
TypeScript
// plugins/ldrs.client.ts
|
|
import { defineNuxtPlugin } from 'nuxt/app'
|
|
|
|
export default defineNuxtPlugin(async () => {
|
|
// 动态引入,防止打包时把 ldrs 拉进 SSR bundle
|
|
const { hatch, helix, spiral } = await import('ldrs')
|
|
|
|
// 想用几个就注册几个
|
|
hatch.register()
|
|
helix.register()
|
|
spiral.register()
|
|
})
|