gdsmith / jquery.easing

jQuery Easing Plugin
http://gsgd.co.uk/sandbox/jquery/easing
Other
922 stars 422 forks source link

Require jquery.easing returns blank object? #30

Closed FireController1847 closed 4 years ago

FireController1847 commented 6 years ago

When searching for jquery.easing in the node.js modules folder, I couldn't find it, and when I require it, it just returns a blank object. Does the module still work?

brettz9 commented 4 years ago

It probably works in the browser, but there is a bug for CommonJS in that the function should return $ at the end (this bug will affect AMD also).

And nowadays, it'd be nice to switch to ESM in source, and use Rollup or such to create UMD and ESM distributions from that.