Files
OpenIsle/frontend_nuxt/plugins/ldrs.client.ts
2025-08-07 20:07:37 +08:00

13 lines
326 B
TypeScript

// plugins/ldrs.client.ts
import { defineNuxtPlugin } from '#app'
export default defineNuxtPlugin(async () => {
// 动态引入,防止打包时把 ldrs 拉进 SSR bundle
const { hatch, helix, spiral } = await import('ldrs')
// 想用几个就注册几个
hatch.register()
helix.register()
spiral.register()
})