Fix bug where passing an object with transform options causes an exception.

This commit is contained in:
Steffan Donal 2016-05-13 15:31:24 +01:00
parent 1622715a51
commit 65c70eec98

View File

@ -5,7 +5,7 @@ import plugins = require("./gulpbrowser.plugins");
let browserify = function(transforms) {
transforms = transforms || [];
if (typeof transforms === 'function') {
if (!Array.isArray(transforms)) {
transforms = [transforms];
}