Skip to content

Commit c8aba0b

Browse files
whoops, didn't mean to fuck this up
1 parent 071861e commit c8aba0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/prog.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ const toArray = val => (Array.isArray(val) ? val : val == null ? [] : [val]);
66
export default handler => {
77
const cmd = type => (str, opts) => {
88
opts.watch = opts.watch || type === 'watch';
9-
opts.compress = opts.compress != null || opts.target !== 'node';
9+
opts.compress =
10+
opts.compress != null ? opts.compress : opts.target !== 'node';
1011
opts.entries = toArray(str || opts.entry).concat(opts._);
1112
handler(opts);
1213
};

0 commit comments

Comments
 (0)