Skip to content

Commit

Permalink
Add Spine 4.0 build support
Browse files Browse the repository at this point in the history
  • Loading branch information
epreston committed Sep 14, 2023
1 parent a8564eb commit a7638f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ const builds = [
name: 'playcanvas-spine.3.8',
lib: 'contrib/spine-ts/build/3.8/spine-core.js'
},
{
name: 'playcanvas-spine.4.0',
lib: 'src/wrapper40.js'
},
{
name: 'playcanvas-spine.4.1',
lib: 'src/wrapper41.js'
Expand Down
2 changes: 2 additions & 0 deletions src/wrapper40.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// spine 4.0 requires a wrapper to match import signature of other versions
export * as spine from "spine40";

0 comments on commit a7638f9

Please sign in to comment.