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 c3598f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions moment-timezone-utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! moment-timezone-utils.js
//! version : 0.5.17
//! version : 0.5.18
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
Expand All @@ -8,10 +8,10 @@
"use strict";

/*global define*/
if (typeof define === 'function' && define.amd) {
if (typeof module === 'object' && module.exports) {
module.exports = factory(require('./')); // Node
} else if (typeof define === 'function' && define.amd) {
define(['moment'], factory); // AMD
} else if (typeof module === 'object' && module.exports) {
module.exports = factory(require('./')); // Node
} else {
factory(root.moment); // Browser
}
Expand Down
7 changes: 3 additions & 4 deletions moment-timezone.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
"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 c3598f4

Please sign in to comment.