pipwerks / scorm-api-wrapper

The pipwerks SCORM API Wrapper
http://pipwerks.com
357 stars 125 forks source link

Added UMD compatibility (AMD, Node and CommonJS-ish) #24

Closed ahosgood closed 6 years ago

ahosgood commented 8 years ago

Don't know if this is useful in any way, but I needed to include the file in an ES6 project that gets transpiled and needed to make it export the pipwerks object.

I think I have managed to maintain compatibility with including the file in a <script> tag as before, in which case the pipwerks object is added to the window object.

Let me know if there is anything I can improve on :)

pipwerks commented 7 years ago

Thank you, but I am not ready to make this change yet.

pipwerks commented 6 years ago

Sorry for sitting on this for so long. I have added module support.