MCPcopy Index your code
hub / github.com/developit/microbundle / getEntries

Function getEntries

src/index.js:249–260  ·  view source on GitHub ↗
({ input, cwd })

Source from the content-addressed store, hash-verified

247}
248
249async function getEntries({ input, cwd }) {
250 let entries = (
251 await map([].concat(input), async file => {
252 file = resolve(cwd, file);
253 if (await isDir(file)) {
254 file = resolve(file, 'index.js');
255 }
256 return file;
257 })
258 ).filter((item, i, arr) => arr.indexOf(item) === i);
259 return entries;
260}
261
262function replaceName(filename, name) {
263 return resolve(

Callers 1

microbundleFunction · 0.85

Calls 1

isDirFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…