From babcf873c557c050049f58cc6cdd2c97bac17d6b Mon Sep 17 00:00:00 2001 From: brillout Date: Thu, 10 Sep 2015 13:44:12 +0200 Subject: [PATCH] allow options to be undefined --- lib/bundle.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/bundle.js b/lib/bundle.js index 37f44c379..851faf124 100644 --- a/lib/bundle.js +++ b/lib/bundle.js @@ -73,6 +73,8 @@ exports.depCache = function(expression) { exports.bundle = function(moduleExpression, fileName, opts) { var systemBuilder = new Builder(); + + opts = opts || {}; return config.load() .then(function() { @@ -139,6 +141,8 @@ function logBuild(outFile, opts) { // options.minify, options.sourceMaps exports.bundleSFX = function(expression, fileName, opts) { var systemBuilder = new Builder(); + + opts = opts || {}; return config.load() .then(function() {