We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9aed9eb commit deb990bCopy full SHA for deb990b
index.js
@@ -24,13 +24,12 @@ module.exports = function f (b, opts) {
24
25
var needRecords = !files.length;
26
27
+ opts.outputs = opts.outputs || opts.o;
28
opts.objectMode = true;
29
opts.raw = true;
30
opts.rmap = {};
31
- b.on('reset', function() {
32
- addHooks();
33
- });
+ b.on('reset', addHooks);
34
addHooks();
35
36
function addHooks() {
@@ -42,7 +41,7 @@ module.exports = function f (b, opts) {
42
41
}, function(next) {
43
var cwd = defined(opts.basedir, b._options.basedir, process.cwd());
44
var fileMap = files.reduce(function (acc, x, ix) {
45
- acc[path.resolve(cwd, x)] = opts.o[ix];
+ acc[path.resolve(cwd, x)] = opts.outputs[ix];
46
return acc;
47
}, {});
48
0 commit comments