mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-20 22:11:01 +08:00
13 lines
326 B
TypeScript
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()
|
|
})
|