Skip to content

Commit 2dcd669

Browse files
committed
Dedupe entries.
1 parent f5b61e7 commit 2dcd669

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ export default async function microbundle(options) {
6060
}
6161
options.output = main;
6262

63-
let entries = await map([].concat(options.input), async file => {
63+
let entries = (await map([].concat(options.input), async file => {
6464
file = resolve(cwd, file);
6565
if (await isDir(file)) {
6666
file = resolve(file, 'index.js');
6767
}
6868
return file;
69-
});
69+
})).filter( (item, i, arr) => arr.indexOf(item)===i );
7070

7171
options.entries = entries;
7272

0 commit comments

Comments
 (0)