gumgum / gg-ez-vp

Simple video player with minimal setup, intuitive API and straightforward features
https://gumgum.github.io/gg-ez-vp
MIT License
7 stars 4 forks source link

Publish to NPM #106

Open edrpls opened 3 years ago

edrpls commented 3 years ago

It would be great to distribute the library as CJS and/or ES modules through npm.

Currently, this is blocked by #32, as image preload was originally thought for UMD without considering either CJS or ES modules.

We should publish the transpiled modules instead of the source code as this may require extra configuration for our users depending on the builder/transpiler of their choice (looking at you, Webpack/Babel).

We haven't had the use-case for either module yet, but it would be great to have the option for 2.0.0.

See:

32, #63 and this method