Search the Community
Showing results for tags 'commonjs'.
Found 1 result
Greensock TweenLite/TweenMax exported globals with CommonJS moduleCan Greensock TweenLite/TweenMax globals be obtained when using the library as CommonJS module? E.g. easing functions that are available as window.com.greensock.easing, like let Power4 = require('./TweenMax')... I feel myself 10 years younger when I look at all these globals. I look at the source code and see that the only export is TweenMax constructor. Can it be done somehow without resorting to globals at all?