Skip to content

Commit 7d5a392

Browse files
committed
Default transform options to {} when using array syntax
Fixes #117, Closes #118
1 parent 44b3c03 commit 7d5a392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ Deps.prototype.getTransforms = function (file, pkg, opts) {
252252
function makeTransform (tr, cb) {
253253
var trOpts = {};
254254
if (Array.isArray(tr)) {
255-
trOpts = tr[1];
255+
trOpts = tr[1] || {};
256256
tr = tr[0];
257257
}
258258
trOpts._flags = trOpts.hasOwnProperty('_flags') ? trOpts._flags : self.options;

0 commit comments

Comments
 (0)