"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.generateManifest = void 0;
const generateManifest = (seed, files, entries) => {
    const manifestFiles = files.reduce((manifest, file) => {
        manifest[file.name] = file.path;
        return manifest;
    }, seed);
    const entrypointFiles = Object.keys(entries).reduce((previous, name) => previous.concat(entries[name].filter(fileName => !fileName.endsWith('.map'))), []);
    return {
        files: manifestFiles,
        entrypoints: entrypointFiles,
    };
};
exports.generateManifest = generateManifest;
