Skip to content

Commit

Permalink
use default import in require
Browse files Browse the repository at this point in the history
  • Loading branch information
stantoncbradley committed Oct 2, 2017
1 parent a46d55f commit 43e3f00
Show file tree
Hide file tree
Showing 2 changed files with 2,044 additions and 1 deletion.
2 changes: 1 addition & 1 deletion moment-timezone.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
if (typeof define === 'function' && define.amd) {
define(['moment'], factory); // AMD
} else if (typeof module === 'object' && module.exports) {
module.exports = factory(require('moment')); // Node
module.exports = factory(require('moment').default); // Node
} else {
factory(root.moment); // Browser
}
Expand Down
Loading

0 comments on commit 43e3f00

Please sign in to comment.