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

npm package / commonjs support #466

Open
TheBITLINK opened this issue Oct 16, 2018 · 1 comment
Open

npm package / commonjs support #466

TheBITLINK opened this issue Oct 16, 2018 · 1 comment

Comments

@TheBITLINK
Copy link
Collaborator

TheBITLINK commented Oct 16, 2018

I know this is deader than jQuery by now, but it won't hurt to modernize this a little by adding support for commonjs environments and uploading an npm package, that way it can be used with bundlers like Webpack and included from CDNs like unpkg.

AFAIK other libraries do it by checking if module exists in the global scope then setting module.exports instead of extending window if it does.

We could also modify the deploy script to automatically increase the package version and publish to npm, thought that's not really needed given that there's literally no activity not much activity.

I'll see if i can do the necessary changes later this month, for now, have a seal

seel

@gytdau
Copy link
Collaborator

gytdau commented Oct 16, 2018

This sounds like a good idea, hope it pads out your commit history graph sufficiently to merit working on this.. thing. 😉

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

2 participants