playcanvas / playcanvas-spine

Plugin component for PlayCanvas which enables support for Spine animations.
MIT License
48 stars 18 forks source link

refactor: es6 with babel translation down to es5 iife #80

Closed epreston closed 1 year ago

epreston commented 1 year ago

Refactor code to ES6 and introduce automatic babel translation to es5 in an iife format that can be consumed by ES5 and ES6 versions of the engine and editor.

Maintains compatibility with existing code by exposing the underlying spine library for user's scripts as a global variable called "spine".

Recommend version increment if accepted.

In addition:

Fixes: https://github.com/playcanvas/playcanvas-spine/issues/79 Fixes: https://github.com/playcanvas/engine/issues/5399 Unblocks: https://github.com/playcanvas/engine/issues/5521

Editor Demo: https://playcanvas.com/project/1124022/overview/spine-41-demo

I confirm I have read the contributing guidelines and signed the Contributor License Agreement.