]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fix #4060: bundle.generate returns a Promise now 4061/head
authorBasile Bruneau <basilebruneau@gmail.com>
Tue, 11 Jul 2017 16:11:36 +0000 (18:11 +0200)
committerBasile Bruneau <basilebruneau@gmail.com>
Tue, 11 Jul 2017 16:11:36 +0000 (18:11 +0200)
tasks/transpile.js

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;
         });
     }