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

Wrap in UMD for CommonJS/AMD compatibility #5

Open
Lokaltog opened this issue Jul 7, 2014 · 0 comments
Open

Wrap in UMD for CommonJS/AMD compatibility #5

Lokaltog opened this issue Jul 7, 2014 · 0 comments

Comments

@Lokaltog
Copy link

Lokaltog commented Jul 7, 2014

I'm using webpack for managing my assets, and while it's possible to shim this plugin so it works with CommonJS or AMD it would be great if it supported it natively. I realize this plugin aims to be very small, but the UMD overhead isn't very large and it makes it much more convenient importing it for any asset manager that uses CommonJS or AMD loading (it would also make the plugin compatible with Node). Here's a suggested UMD wrapper for dependency-free plugins that is compatible with both CommonJS and AMD plugin loading.

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