We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c13d78b commit 8588060Copy full SHA for 8588060
1 file changed
src/cfg-resolve.js
@@ -27,19 +27,19 @@ export default ({input, flags = {}}) => {
27
}
28
29
input = []
30
- .concat(input || config?.input)
+ .concat(input.length > 0 ? input : config?.input)
31
.filter(Boolean)
32
.map(file => path.join(path.resolve(root), file));
33
34
if (input.length === 0) {
35
throw new TypeError('input files not found');
36
37
38
- return mergeOptions(config || {}, {
+ return mergeOptions(config ?? {}, {
39
input,
40
- output,
+ output: output ?? config?.output,
41
options,
42
root,
43
allInOutput
44
- }, use || {});
+ }, use ?? {});
45
};
0 commit comments