@zohodesk/client_build_tool
Version:
A CLI tool to build web applications and client libraries
13 lines (11 loc) • 326 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getChunkModules = getChunkModules;
function getChunkModules(chunk, compilation) {
const {
chunkGraph
} = compilation || {};
return typeof chunkGraph !== 'undefined' ? chunkGraph.getChunkModules(chunk) : chunk.modulesIterable;
}