UNPKG

@roots/bud-build

Version:

bud.js core module

10 lines (9 loc) 323 B
export const entry = async ({ hooks }) => { const entrypoints = hooks.filter(`build.entry`, { main: { import: [`./index`] }, }); return Object.entries(entrypoints).reduce((acc, [key, value]) => { value.import = [...new Set(value.import)]; return { ...acc, [key]: value }; }, {}); };