Files
mini-viewer/tools/spine-entry.js
T

12 lines
468 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 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 }