We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 071861e commit c8aba0bCopy full SHA for c8aba0b
1 file changed
src/prog.js
@@ -6,7 +6,8 @@ const toArray = val => (Array.isArray(val) ? val : val == null ? [] : [val]);
6
export default handler => {
7
const cmd = type => (str, opts) => {
8
opts.watch = opts.watch || type === 'watch';
9
- opts.compress = opts.compress != null || opts.target !== 'node';
+ opts.compress =
10
+ opts.compress != null ? opts.compress : opts.target !== 'node';
11
opts.entries = toArray(str || opts.entry).concat(opts._);
12
handler(opts);
13
};
0 commit comments