Skip to content

Commit

Permalink
prefer nodejs to amd declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
ellenaua committed Jun 18, 2018
1 parent 66d8f40 commit 38e1299
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions moment-timezone.js
Expand Up @@ -8,11 +8,11 @@
"use strict";

/*global define*/
if (typeof define === 'function' && define.amd) {
define(['moment'], factory); // AMD
} else if (typeof module === 'object' && module.exports) {
if (typeof module === 'object' && module.exports) {
module.exports = factory(require('moment')); // Node
} else {
} else if (typeof define === 'function' && define.amd) {
define(['moment'], factory); // AMD
} else {
factory(root.moment); // Browser
}
}(this, function (moment) {
Expand Down

0 comments on commit 38e1299

Please sign in to comment.