]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fix some transpilation issues
authorIskren Chernev <iskren.chernev@gmail.com>
Wed, 9 Aug 2017 12:45:44 +0000 (15:45 +0300)
committerIskren Chernev <iskren.chernev@gmail.com>
Wed, 9 Aug 2017 12:45:44 +0000 (15:45 +0300)
src/lib/moment/add-subtract.js
src/lib/moment/get-set.js
src/lib/moment/prototype.js
tasks/transpile.js

index 965a06f9e542b9e7f05b456fff1ab20c51c742cd..82229f7c090744ad481e45fb69d3441b247adc49 100644 (file)
@@ -1,5 +1,5 @@
 import { Moment } from './constructor';
-import { get, set } from './get-set';
+import { get } from './get-set';
 import { smartSetUTCMonth } from '../units/month';
 import { createDuration } from '../duration/create';
 import { deprecateSimple } from '../utils/deprecate';
index 994a993c58de3511392811448b1334bfe5289cee..82a61ca0d6c465000a8fb3b55e95ba85d0a75ccf 100644 (file)
@@ -27,7 +27,7 @@ function set (mom, unit, value, msCoef) {
         return mom;
     }
     var d, uts;
-    console.log('SET', arguments);
+    // console.log('SET', arguments);
     if (msCoef != null) {
         // this is one of ms, second, minute, hour
         uts = mom.valueOf();
index b6437ddfc355e67218e17a8333f5421e78264378..237a682ff905f2ba02d40b6cf5d7a74927336527 100644 (file)
@@ -110,7 +110,6 @@ import {
     setOffsetToParsedOffset,
     hasAlignedHourOffset,
     isDaylightSavingTime,
-    isDaylightSavingTimeShifted,
     getSetZone,
     isLocal,
     isUtcOffset,
index ea8a15a0ff1ea7c800f34f6296ee533930c2be52..15c921745b8446b36d1eadd86b3ddbd1dc58b132 100644 (file)
@@ -71,7 +71,8 @@ module.exports = function (grunt) {
         }
 
         return rollup(rollupOpts).then(function (bundle) {
-            var result = bundle.generate(bundleOpts);
+            return bundle.generate(bundleOpts);
+        }).then(function (result) {
             return result.code;
         });
     }