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() {