Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adding es module fix to bind and dedupe
  • Loading branch information
JedWatson committed Jun 8, 2018
1 parent 34a05a5 commit bac0e9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bind.js
Expand Up @@ -36,6 +36,7 @@
}

if (typeof module !== 'undefined' && module.exports) {
classNames.default = classNames;

This comment has been minimized.

Copy link
@mikeowen85

mikeowen85 Jun 17, 2018

classNames.default = classNames;

module.exports = classNames;
} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {
// register as 'classnames', consistent with npm package name
Expand Down
1 change: 1 addition & 0 deletions dedupe.js
Expand Up @@ -97,6 +97,7 @@
})();

if (typeof module !== 'undefined' && module.exports) {
classNames.default = classNames;

This comment has been minimized.

Copy link
@mikeowen85

mikeowen85 Jun 17, 2018

classNames.default = classNames;

module.exports = classNames;
} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {
// register as 'classnames', consistent with npm package name
Expand Down

0 comments on commit bac0e9e

Please sign in to comment.