getChunkModules(chunk, chunkGraph) {
    return typeof chunkGraph !== "undefined"
      ? chunkGraph.getOrderedChunkModulesIterable(
          chunk,
          compareModulesByIdentifier
        )
      : chunk.modulesIterable;
  }
@private
@param {Chunk} chunk
@param {ChunkGraph} chunkGraph
@returns {Iterable<Module>}