mirror of
https://github.com/developit/microbundle.git
synced 2026-01-18 13:56:35 +00:00
whoops, didn't mean to fuck this up
This commit is contained in:
parent
071861e374
commit
c8aba0bd03
@ -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);
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user