bonsai-analyzer
Version:
Trim your dependency tree.
10 lines (8 loc) • 346 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = getChunkName;
function getChunkName(chunk, importedChunkNames) {
return chunk.names.join(', ') || (importedChunkNames[chunk.id] ? `import('${importedChunkNames[chunk.id]}')` : null) || chunk.origins.map(origin => origin.moduleName).join(', ');
}