@teambit/bundler
Version:
20 lines (18 loc) • 559 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getEntry = getEntry;
/**
* computes the bundler entry.
*/
async function getEntry(context, runtimeSlot) {
// TODO: refactor this away from here and use computePaths instead
const slotEntries = await Promise.all(runtimeSlot.values().map(async browserRuntime => browserRuntime.entry(context)));
const slotPaths = slotEntries.reduce((acc, current) => {
acc = acc.concat(current);
return acc;
});
return slotPaths;
}
//# sourceMappingURL=get-entry.js.map