12 lines
468 B
JavaScript
12 lines
468 B
JavaScript
// Spine 4.2 运行时打包入口
|
||
// 官方 npm 包是纯 ESM(type: module),微信小程序的模块系统只支持 CommonJS,
|
||
// 因此这里用 esbuild 预打包成单个 CJS 文件(vendor/spine.js),
|
||
// 使小程序运行时无需 node_modules、无需「构建 npm」。
|
||
//
|
||
// 重新打包命令:npm run build:spine
|
||
|
||
import * as core from '@esotericsoftware/spine-core'
|
||
import * as webgl from '@esotericsoftware/spine-webgl'
|
||
|
||
export { core, webgl }
|