Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

  • new Chunk(name?: string, backCompat?: boolean): Chunk
  • Parameters

    • Optional name: string
    • Optional backCompat: boolean

    Returns Chunk

Properties

auxiliaryFiles: Set<string>
chunkReason?: string
contentHash: Record<string, string>
cssFilenameTemplate?: string | ((arg0: "/home/runner/work/forge/forge/node_modules/webpack/types".PathData, arg1?: AssetInfo) => string)
debugId: number
extraAsync: boolean
filenameTemplate?: string | ((arg0: "/home/runner/work/forge/forge/node_modules/webpack/types".PathData, arg1?: AssetInfo) => string)
files: Set<string>
hash?: string
id: null | string | number
idNameHints: SortableSet<string>
ids: null | ChunkId[]
name?: string
preventIntegration: boolean
rendered: boolean
renderedHash?: string
runtime: RuntimeSpec

Accessors

  • Returns Module

  • get modulesIterable(): Iterable<Module>
  • Returns Iterable<Module>

Methods

  • Parameters

    Returns void

  • addModule(module: Module): boolean
  • Parameters

    Returns boolean

  • canBeInitial(): boolean
  • Returns boolean

  • canBeIntegrated(otherChunk: Chunk): boolean
  • Parameters

    Returns boolean

  • compareTo(otherChunk: Chunk): 0 | 1 | -1
  • Parameters

    Returns 0 | 1 | -1

  • containsModule(module: Module): boolean
  • Parameters

    Returns boolean

  • disconnectFromGroups(): void
  • Returns void

  • getAllAsyncChunks(): Set<Chunk>
  • Returns Set<Chunk>

  • getAllInitialChunks(): Set<Chunk>
  • Returns Set<Chunk>

  • getAllReferencedAsyncEntrypoints(): Set<Entrypoint>
  • Returns Set<Entrypoint>

  • getAllReferencedChunks(): Set<Chunk>
  • Returns Set<Chunk>

  • getChildIdsByOrders(chunkGraph: ChunkGraph, filterFn?: (c: Chunk, chunkGraph: ChunkGraph) => boolean): Record<string, (string | number)[]>
  • Parameters

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

  • getChildIdsByOrdersMap(chunkGraph: ChunkGraph, includeDirectChildren?: boolean, filterFn?: (c: Chunk, chunkGraph: ChunkGraph) => boolean): Record<string | number, Record<string, (string | number)[]>>
  • Parameters

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

  • getChildrenOfTypeInOrder(chunkGraph: ChunkGraph, type: string): undefined | { chunks: Set<Chunk>; onChunks: Chunk[] }[]
  • Parameters

    Returns undefined | { chunks: Set<Chunk>; onChunks: Chunk[] }[]

  • Parameters

    • realHash: boolean

    Returns ChunkMaps

  • Parameters

    Returns ChunkModuleMaps

  • Returns Module[]

  • getNumberOfGroups(): number
  • Returns number

  • getNumberOfModules(): number
  • Returns number

  • hasAsyncChunks(): boolean
  • Returns boolean

  • hasEntryModule(): boolean
  • Returns boolean

  • hasModuleInGraph(filterFn: (m: Module) => boolean, filterChunkFn?: (c: Chunk, chunkGraph: ChunkGraph) => boolean): boolean
  • Parameters

    Returns boolean

  • hasRuntime(): boolean
  • Returns boolean

  • integrate(otherChunk: Chunk): boolean
  • Parameters

    Returns boolean

  • Parameters

    Returns number

  • isEmpty(): boolean
  • Returns boolean

  • Parameters

    Returns boolean

  • isOnlyInitial(): boolean
  • Returns boolean

  • modulesSize(): number
  • Returns number

  • Parameters

    Returns void

  • remove(): void
  • Returns void

  • Parameters

    Returns void

  • removeModule(module: Module): void
  • Parameters

    Returns void

  • Parameters

    Returns number

  • split(newChunk: Chunk): void
  • Parameters

    Returns void

  • Parameters

    Returns void