whoops, didn't mean to fuck this up

This commit is contained in:
Leah 2018-10-26 03:35:31 +02:00
parent 071861e374
commit c8aba0bd03

View File

@ -6,7 +6,8 @@ const toArray = val => (Array.isArray(val) ? val : val == null ? [] : [val]);
export default handler => {
const cmd = type => (str, opts) => {
opts.watch = opts.watch || type === 'watch';
opts.compress = opts.compress != null || opts.target !== 'node';
opts.compress =
opts.compress != null ? opts.compress : opts.target !== 'node';
opts.entries = toArray(str || opts.entry).concat(opts._);
handler(opts);
};