Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var opts = transform[1] || {}
return opts.post && { name: name, opts: opts, base: path.dirname(rootFile) }
})
.filter(Boolean)
.concat(sharedPosts)
.map(function (tr) {
if (typeof tr.name === "function") {
tr.tr = tr.name
} else {
var target = resolve.sync(tr.name, { basedir: tr.base || mdir })
tr.tr = require(target)
}
return tr
})
gdeps.prototype.applyTransforms(rootFile, source, localPosts, done);
}
}