Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ChunkGraph

Index

Constructors

Properties

Methods

Constructors

  • Parameters

    Returns ChunkGraph

Properties

moduleGraph: ModuleGraph

Methods

  • addChunkRuntimeRequirements(chunk: Chunk, items: Set<string>): void
  • Parameters

    • chunk: Chunk
    • items: Set<string>

    Returns void

  • addModuleRuntimeRequirements(module: Module, runtime: RuntimeSpec, items: Set<string>, transferOwnership?: boolean): void
  • Parameters

    • module: Module
    • runtime: RuntimeSpec
    • items: Set<string>
    • Optional transferOwnership: boolean

    Returns void

  • addTreeRuntimeRequirements(chunk: Chunk, items: Iterable<string>): void
  • Parameters

    • chunk: Chunk
    • items: Iterable<string>

    Returns void

  • attachModules(chunk: Chunk, modules: Iterable<Module>): void
  • Parameters

    Returns void

  • canChunksBeIntegrated(chunkA: Chunk, chunkB: Chunk): boolean
  • Parameters

    Returns boolean

  • compareChunks(chunkA: Chunk, chunkB: Chunk): 0 | 1 | -1
  • Parameters

    Returns 0 | 1 | -1

  • Parameters

    Returns void

  • connectChunkAndModule(chunk: Chunk, module: Module): void
  • Parameters

    Returns void

  • disconnectChunk(chunk: Chunk): void
  • Parameters

    Returns void

  • disconnectChunkAndEntryModule(chunk: Chunk, module: Module): void
  • Parameters

    Returns void

  • disconnectChunkAndModule(chunk: Chunk, module: Module): void
  • Parameters

    Returns void

  • disconnectChunkGroup(chunkGroup: ChunkGroup): void
  • Parameters

    Returns void

  • disconnectEntries(chunk: Chunk): void
  • Parameters

    Returns void

  • disconnectEntryModule(module: Module): void
  • Parameters

    Returns void

  • getChunkConditionMap(chunk: Chunk, filterFn: (c: Chunk, chunkGraph: ChunkGraph) => boolean): Record<string | number, boolean>
  • Parameters

    Returns Record<string | number, boolean>

  • getChunkEntryDependentChunksIterable(chunk: Chunk): Iterable<Chunk>
  • Parameters

    Returns Iterable<Chunk>

  • getChunkEntryModulesIterable(chunk: Chunk): Iterable<Module>
  • Parameters

    Returns Iterable<Module>

  • Parameters

    Returns Iterable<[Module, undefined | Entrypoint]>

  • getChunkModuleIdMap(chunk: Chunk, filterFn: (m: Module) => boolean, includeAllChunks?: boolean): Record<string | number, (string | number)[]>
  • Parameters

    • chunk: Chunk
    • filterFn: (m: Module) => boolean
    • Optional includeAllChunks: boolean

    Returns Record<string | number, (string | number)[]>

  • getChunkModuleRenderedHashMap(chunk: Chunk, filterFn: (m: Module) => boolean, hashLength?: number, includeAllChunks?: boolean): Record<string | number, Record<string | number, string>>
  • Parameters

    • chunk: Chunk
    • filterFn: (m: Module) => boolean
    • Optional hashLength: number
    • Optional includeAllChunks: boolean

    Returns Record<string | number, Record<string | number, string>>

  • getChunkModuleSourceTypes(chunk: Chunk, module: Module): Set<string>
  • Parameters

    Returns Set<string>

  • Parameters

    Returns Module[]

  • getChunkModulesIterable(chunk: Chunk): Iterable<Module>
  • Parameters

    Returns Iterable<Module>

  • getChunkModulesIterableBySourceType(chunk: Chunk, sourceType: string): undefined | Iterable<Module>
  • Parameters

    • chunk: Chunk
    • sourceType: string

    Returns undefined | Iterable<Module>

  • getChunkModulesSize(chunk: Chunk): number
  • Parameters

    Returns number

  • getChunkModulesSizes(chunk: Chunk): Record<string, number>
  • Parameters

    Returns Record<string, number>

  • Parameters

    Returns Module[]

  • getChunkRuntimeRequirements(chunk: Chunk): ReadonlySet<string>
  • Parameters

    Returns ReadonlySet<string>

  • Parameters

    Returns number

  • Parameters

    Returns number

  • Parameters

    Returns Chunk[]

  • getModuleChunksIterable(module: Module): Iterable<Chunk>
  • Parameters

    Returns Iterable<Chunk>

  • getModuleGraphHash(module: Module, runtime: RuntimeSpec, withConnections?: boolean): string
  • Parameters

    Returns string

  • getModuleGraphHashBigInt(module: Module, runtime: RuntimeSpec, withConnections?: boolean): bigint
  • Parameters

    Returns bigint

  • Parameters

    Returns string

  • getModuleId(module: Module): string | number
  • Parameters

    Returns string | number

  • getModuleRuntimeRequirements(module: Module, runtime: RuntimeSpec): ReadonlySet<string>
  • Parameters

    Returns ReadonlySet<string>

  • getModuleSourceTypes(module: Module): Set<string>
  • Parameters

    Returns Set<string>

  • getNumberOfChunkFullHashModules(chunk: Chunk): number
  • Parameters

    Returns number

  • getNumberOfChunkModules(chunk: Chunk): number
  • Parameters

    Returns number

  • getNumberOfEntryModules(chunk: Chunk): number
  • Parameters

    Returns number

  • getNumberOfModuleChunks(module: Module): number
  • Parameters

    Returns number

  • getNumberOfRuntimeModules(chunk: Chunk): number
  • Parameters

    Returns number

  • getOrderedChunkModulesIterable(chunk: Chunk, comparator: (arg0: Module, arg1: Module) => 0 | 1 | -1): Iterable<Module>
  • Parameters

    Returns Iterable<Module>

  • getOrderedChunkModulesIterableBySourceType(chunk: Chunk, sourceType: string, comparator: (arg0: Module, arg1: Module) => 0 | 1 | -1): undefined | Iterable<Module>
  • Parameters

    Returns undefined | Iterable<Module>

  • getOrderedModuleChunksIterable(module: Module, sortFn: (arg0: Chunk, arg1: Chunk) => 0 | 1 | -1): Iterable<Chunk>
  • Parameters

    Returns Iterable<Chunk>

  • Parameters

    Returns string

  • getRuntimeId(runtime: string): string | number
  • Parameters

    • runtime: string

    Returns string | number

  • getTreeRuntimeRequirements(chunk: Chunk): ReadonlySet<string>
  • Parameters

    Returns ReadonlySet<string>

  • hasChunkEntryDependentChunks(chunk: Chunk): boolean
  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • hasModuleInGraph(chunk: Chunk, filterFn: (m: Module) => boolean, filterChunkFn?: (c: Chunk, chunkGraph: ChunkGraph) => boolean): boolean
  • integrateChunks(chunkA: Chunk, chunkB: Chunk): void
  • Parameters

    Returns void

  • isEntryModule(module: Module): boolean
  • Parameters

    Returns boolean

  • isEntryModuleInChunk(module: Module, chunk: Chunk): boolean
  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    Returns void

  • setChunkModuleSourceTypes(chunk: Chunk, module: Module, sourceTypes: Set<string>): void
  • Parameters

    Returns void

  • setModuleHashes(module: Module, runtime: RuntimeSpec, hash: string, renderedHash: string): void
  • Parameters

    Returns void

  • setModuleId(module: Module, id: string | number): void
  • Parameters

    • module: Module
    • id: string | number

    Returns void

  • setRuntimeId(runtime: string, id: string | number): void
  • Parameters

    • runtime: string
    • id: string | number

    Returns void

  • upgradeDependentToFullHashModules(chunk: Chunk): void
  • Parameters

    Returns void

  • clearChunkGraphForChunk(chunk: Chunk): void
  • Parameters

    Returns void

  • clearChunkGraphForModule(module: Module): void
  • Parameters

    Returns void

  • getChunkGraphForChunk(chunk: Chunk, deprecateMessage: string, deprecationCode: string): ChunkGraph
  • Parameters

    • chunk: Chunk
    • deprecateMessage: string
    • deprecationCode: string

    Returns ChunkGraph

  • getChunkGraphForModule(module: Module, deprecateMessage: string, deprecationCode: string): ChunkGraph
  • Parameters

    • module: Module
    • deprecateMessage: string
    • deprecationCode: string

    Returns ChunkGraph

  • Parameters

    Returns void

  • Parameters

    Returns void