Skip to content

Commit

Permalink
Fix moment#4060: bundle.generate returns a Promise now
Browse files Browse the repository at this point in the history
  • Loading branch information
NTag authored and fbonzon committed Oct 28, 2017
1 parent ac0034a commit bf1833e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/transpile.js
Expand Up @@ -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;
});
}
Expand Down

0 comments on commit bf1833e

Please sign in to comment.