Fix bug where passing an object with transform options causes an exception.
This commit is contained in:
parent
1622715a51
commit
65c70eec98
@ -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];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user