We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5b61e7 commit 2dcd669Copy full SHA for 2dcd669
1 file changed
src/index.js
@@ -60,13 +60,13 @@ export default async function microbundle(options) {
60
}
61
options.output = main;
62
63
- let entries = await map([].concat(options.input), async file => {
+ let entries = (await map([].concat(options.input), async file => {
64
file = resolve(cwd, file);
65
if (await isDir(file)) {
66
file = resolve(file, 'index.js');
67
68
return file;
69
- });
+ })).filter( (item, i, arr) => arr.indexOf(item)===i );
70
71
options.entries = entries;
72
0 commit comments