Skip to content

Commit a38411f

Browse files
committed
fix(join) uglify: exec.each -> exec.parallel
1 parent ffb9bf3 commit a38411f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

lib/join.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,17 @@
129129
});
130130
}
131131

132+
function retMinify(name) {
133+
return minify.bind(null, name);
134+
}
135+
132136
function uglify(names, callback) {
133-
exec.each(names, minify, callback);
137+
var funcs = {};
138+
139+
names.forEach(function(name) {
140+
funcs[name] = retMinify(name);
141+
});
142+
143+
exec.parallel(funcs, callback);
134144
}
135145
})();

0 commit comments

Comments
 (0)