MainLoop.js icon indicating copy to clipboard operation
MainLoop.js copied to clipboard

Update library to Node Module

Open LucasAlfare opened this issue 4 years ago • 2 comments

Since last commit was 2 years ago is a nice idea update the library to fully work with the node module system (a.k.a. export default/import), once this feature is more mature now.

LucasAlfare avatar Dec 25 '20 03:12 LucasAlfare

Reasonable request I suppose. If I was going to do this I'd want to have the compile step output in both UMD and ES6 Module format.

IceCreamYou avatar Dec 25 '20 21:12 IceCreamYou

I'm also interested by this as it doesn't seem to be currently working when imported as an ES6 module

mainloop.js:152 Uncaught TypeError: Cannot set properties of undefined (setting 'MainLoop')
    at mainloop.js:152:6
    at mainloop.js:753:27

FlorentMasson avatar Nov 29 '23 23:11 FlorentMasson