chunkHasJs = (chunk, chunkGraph) => {
	if (chunkGraph.getNumberOfEntryModules(chunk) > 0) return true;

	return Boolean(
		chunkGraph.getChunkModulesIterableBySourceType(chunk, "javascript")
	);
}
@param {Chunk} chunk a chunk
@param {ChunkGraph} chunkGraph the chunk graph
@returns {boolean} true, when a JS file is needed for this chunk