diff --git a/lib/builder-browserify.js b/lib/builder-browserify.js index b40ae16..36756da 100644 --- a/lib/builder-browserify.js +++ b/lib/builder-browserify.js @@ -39,7 +39,13 @@ function configure(bundler, cfg) { if (type === 'transform' && typeof o[type] === 'object') { bundler[type](o[type].name, _.omit(o[type], 'name')); } else { - bundler[type](o[type], _.omit(o, type)); + var values = o[type]; + if (!Array.isArray(values)) { + values = [values]; + } + values.forEach(function (value) { + bundler[type](value, _.omit(o, type)); + }); } } }