Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

chunks: Chunk[]
getModuleIndex: (module: Module) => undefined | number

Type declaration

    • (module: Module): undefined | number
    • Parameters

      Returns undefined | number

getModuleIndex2: (module: Module) => undefined | number

Type declaration

    • (module: Module): undefined | number
    • Parameters

      Returns undefined | number

groupDebugId: number
index?: number
name?: string

returns the name of current ChunkGroup sets a new name for current ChunkGroup

origins: OriginRecord[]

Accessors

  • Returns SortableSet<ChunkGroup>

  • Returns Iterable<AsyncDependenciesBlock>

  • Returns SortableSet<ChunkGroup>

  • get debugId(): string
  • get a uniqueId for ChunkGroup, made up of its member Chunk debugId's

    Returns string

  • get id(): string
  • get a unique id for ChunkGroup, made up of its member Chunk id's

    Returns string

  • Returns SortableSet<ChunkGroup>

Methods

  • addAsyncEntrypoint(entrypoint: Entrypoint): boolean
  • when a new chunk is added to a chunkGroup, addingOptions will occur.

    Parameters

    Returns void

  • checkConstraints(): void
  • Sorting predicate which allows current ChunkGroup to be compared against another. Sorting values are based off of number of chunks in ChunkGroup.

    Parameters

    Returns 0 | 1 | -1

  • getEntrypointChunk(): Chunk
  • Returns the chunk which contains the entrypoint modules (or at least the execution of them)

    Returns Chunk

  • getFiles(): string[]
  • Returns string[]

  • getModulePostOrderIndex(module: Module): undefined | number
  • Gets the bottom-up index of a module in this ChunkGroup

    Parameters

    Returns undefined | number

  • getModulePreOrderIndex(module: Module): undefined | number
  • Gets the top-down index of a module in this ChunkGroup

    Parameters

    Returns undefined | number

  • getNumberOfBlocks(): number
  • getNumberOfChildren(): number
  • getNumberOfParents(): number
  • getRuntimeChunk(): null | Chunk
  • Fetches the chunk reference containing the webpack bootstrap code

    Returns null | Chunk

  • inserts a chunk before another existing chunk in group

    Parameters

    Returns boolean

  • isInitial(): boolean
  • Returns boolean

  • pushChunk(chunk: Chunk): boolean
  • add a chunk into ChunkGroup. Is pushed on or prepended

    Parameters

    Returns boolean

  • remove(): void
  • Returns void

  • removeChunk(chunk: Chunk): boolean
  • replaceChunk(oldChunk: Chunk, newChunk: Chunk): boolean
  • setEntrypointChunk(chunk: Chunk): void
  • Sets the chunk with the entrypoint modules for an entrypoint.

    Parameters

    Returns void

  • setModulePostOrderIndex(module: Module, index: number): void
  • Sets the bottom-up index of a module in this ChunkGroup

    Parameters

    Returns void

  • setModulePreOrderIndex(module: Module, index: number): void
  • Sets the top-down index of a module in this ChunkGroup

    Parameters

    Returns void

  • setRuntimeChunk(chunk: Chunk): void
  • Sets the runtimeChunk for an entrypoint.

    Parameters

    Returns void

  • sortItems(): void
  • unshiftChunk(chunk: Chunk): boolean
  • Performs an unshift of a specific chunk

    Parameters

    Returns boolean