diff --git a/.travis.yml b/.travis.yml index 7e314a1b..f3252441 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,8 +2,6 @@ language: node_js node_js: - "node" - "8" - - "6" - - "4" install: - npm install - npm install -g grunt-cli diff --git a/moment-timezone.js b/moment-timezone.js index df762a83..b625ce5f 100644 --- a/moment-timezone.js +++ b/moment-timezone.js @@ -18,6 +18,11 @@ }(this, function (moment) { "use strict"; + // Resolves es6 module loading issue + if (moment.version === undefined) { + moment = moment.default; + } + // Do not load moment-timezone a second time. // if (moment.tz !== undefined) { // logError('Moment Timezone ' + moment.tz.version + ' was already loaded ' + (moment.tz.dataVersion ? 'with data from ' : 'without any data') + moment.tz.dataVersion);