I'd like to use FileDrop in a commonjs environment, specifically Browserify. I tried the following expecting it to work:
var FileDrop = require('filedrop');
however this simply returns an empty object. It appears FileDrop only attaches itself to window and doesn't follow any modern module pattern (AMD or CommonJS). By making this library UMD compatible you will only need to expose FileDrop in the global scope if running in a non AMD or non CommonJS environment.
I'd like to use FileDrop in a commonjs environment, specifically Browserify. I tried the following expecting it to work:
however this simply returns an empty object. It appears FileDrop only attaches itself to window and doesn't follow any modern module pattern (AMD or CommonJS). By making this library UMD compatible you will only need to expose FileDrop in the global scope if running in a non AMD or non CommonJS environment.