UNPKG

bonsai-analyzer

Version:
10 lines (8 loc) 346 B
"use strict"; 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(', '); }