Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

buildInfo?: BuildInfo
buildMeta?: BuildMeta
chunk?: Chunk
chunkGraph?: ChunkGraph
compilation?: Compilation
context: null | string
debugId: number
dependentHash: boolean
depth: null | number
factoryMeta?: FactoryMeta
fullHash: boolean
id: string | number
index: null | number
index2: null | number
issuer: null | Module
layer: null | string
name: string
needId: boolean
profile: null | ModuleProfile
stage: number
type: string
useSimpleSourceMap: boolean
useSourceMap: boolean
used: any
STAGE_ATTACH: number

Runtime modules which attach to handlers of other runtime modules

STAGE_BASIC: number

Runtime modules with simple dependencies on other runtime modules

STAGE_NORMAL: number

Runtime modules without any dependencies to other runtime modules

STAGE_TRIGGER: number

Runtime modules which trigger actions on bootstrap

Accessors

  • get chunksIterable(): Iterable<Chunk>
  • Returns Iterable<Chunk>

  • get errors(): any
  • Returns any

  • get exportsArgument(): string
  • Returns string

  • get hasEqualsChunks(): any
  • Returns any

  • get hash(): string
  • Returns string

  • get isUsed(): any
  • Returns any

  • get moduleArgument(): string
  • Returns string

  • get optimizationBailout(): (string | ((requestShortener: RequestShortener) => string))[]
  • Returns (string | ((requestShortener: RequestShortener) => string))[]

  • get optional(): boolean
  • Returns boolean

  • get renderedHash(): string
  • Returns string

  • get usedExports(): null | boolean | SortableSet<string>
  • Returns null | boolean | SortableSet<string>

  • get warnings(): any
  • Returns any

Methods

  • Adds a DependencyBlock to DependencyBlock relationship. This is used for when a Module has a AsyncDependencyBlock tie (for code-splitting)

    Parameters

    Returns void

  • addCacheDependencies(fileDependencies: LazySet<string>, contextDependencies: LazySet<string>, missingDependencies: LazySet<string>, buildDependencies: LazySet<string>): void
  • addChunk(chunk: Chunk): boolean
  • cleanupForCache(): void
  • Assuming this module is in the cache. Remove internal references to allow freeing some memory.

    Returns void

  • clearDependenciesAndBlocks(): void
  • clearWarningsAndErrors(): void
  • generate(): null | string
  • Returns null | string

  • getExportsType(moduleGraph: ModuleGraph, strict?: boolean): "namespace" | "default-only" | "default-with-named" | "dynamic"
  • Parameters

    Returns "namespace" | "default-only" | "default-with-named" | "dynamic"

  • getGeneratedCode(): null | string
  • getNumberOfChunks(): number
  • getNumberOfErrors(): number
  • getNumberOfWarnings(): number
  • getSourceTypes(): Set<string>
  • getUnsafeCacheData(): object
  • Module should be unsafe cached. Get data that's needed for that. This data will be passed to restoreFromUnsafeCache later.

    Returns object

  • hasChunkCondition(): boolean
  • identifier(): string
  • invalidateBuild(): void
  • isEntryModule(): boolean
  • isInChunk(chunk: Chunk): boolean
  • isProvided(exportName: string): null | boolean
  • Parameters

    • exportName: string

    Returns null | boolean

  • nameForCondition(): null | string
  • needRebuild(fileTimestamps: Map<string, null | number>, contextTimestamps: Map<string, null | number>): boolean
  • Parameters

    • fileTimestamps: Map<string, null | number>
    • contextTimestamps: Map<string, null | number>

    Returns boolean

  • removeChunk(chunk: Chunk): void
  • shouldIsolate(): boolean
  • size(type?: string): number
  • Parameters

    • Optional type: string

    Returns number

  • updateCacheModule(module: Module): void
  • Assuming this module is in the cache. Update the (cached) module with the fresh module from the factory. Usually updates internal references and properties.

    Parameters

    Returns void