From: Basile Bruneau Date: Tue, 11 Jul 2017 16:11:36 +0000 (+0200) Subject: Fix #4060: bundle.generate returns a Promise now X-Git-Tag: 2.19.0~49^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4061%2Fhead;p=thirdparty%2Fmoment.git Fix #4060: bundle.generate returns a Promise now --- diff --git a/tasks/transpile.js b/tasks/transpile.js index ea8a15a0f..15c921745 100644 --- a/tasks/transpile.js +++ b/tasks/transpile.js @@ -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; }); }