Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish to NPM #106

Open
edrpls opened this issue Sep 1, 2021 · 0 comments
Open

Publish to NPM #106

edrpls opened this issue Sep 1, 2021 · 0 comments
Milestone

Comments

@edrpls
Copy link

edrpls commented Sep 1, 2021

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

@edrpls edrpls added this to the 2.0.0 milestone Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant