Skip to content

Commit

Permalink
Merge pull request #103 from garthenweb/babelify-fix
Browse files Browse the repository at this point in the history
Fix UMD definition for commonjs
  • Loading branch information
ovidiuch committed Oct 17, 2015
2 parents 2dfa2d0 + 8d61a89 commit b38d174
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/dragdealer.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(factory);
} else if (typeof module === 'object' && module.exports) {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like enviroments that support module.exports,
// like Node.
module.exports.Dragdealer = factory();
} else {
// Browser globals
root.Dragdealer = factory();
Expand Down

0 comments on commit b38d174

Please sign in to comment.