LPology / Simple-Ajax-Uploader

Javascript file upload plugin with progress bar support. Works in all major browsers, including IE7+, Chrome, Firefox, Safari, and Opera. No dependencies - use it with or without jQuery.
995 stars 267 forks source link

Add CommonJS support #83

Closed ntkoopman closed 8 years ago

ntkoopman commented 9 years ago

Makes it a little more intiuative to use with CommonJS supporting build tools (such as webpack).

The minified build will still need to be updated.

steffenmllr commented 9 years ago

Would be great if this could get merged

jmas commented 9 years ago

+

davidkudera commented 9 years ago

That would be really great.

But some people use amd instead of common js, so I think that it would be better to use something like this.

LPology commented 8 years ago

@ntkoopman @steffenmllr @jmas @davidkudera This code change in SimpleAjaxUploader.js causes an undefined variable error to be thrown in the browser for module.

However, I just pushed an update that adds support for CommonJS.

Thanks to everyone for contributing. Sorry it took so long.