diff --git a/rollup.config.mjs b/rollup.config.mjs index f221c46..afaf6de 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -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' diff --git a/src/wrapper40.js b/src/wrapper40.js new file mode 100644 index 0000000..ecbce72 --- /dev/null +++ b/src/wrapper40.js @@ -0,0 +1,2 @@ +// spine 4.0 requires a wrapper to match import signature of other versions +export * as spine from "spine40";