Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

binary: boolean
buildInfo?: BuildInfo
buildMeta?: BuildMeta
context: null | string
debugId: number
depth: null | number
error?: null | WebpackError
factoryMeta?: FactoryMeta
generator: Generator
generatorOptions?: Record<string, any>
id: string | number
index: null | number
index2: null | number
issuer: null | Module
layer: null | string
loaders: LoaderItem[]
matchResource?: string
needId: boolean
parserOptions?: Record<string, any>
profile: null | ModuleProfile
rawRequest: string
request: string
resource: string
resourceResolveData?: Record<string, any>
type: string
useSimpleSourceMap: boolean
useSourceMap: boolean
used: any
userRequest: string

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
  • Parameters

    Returns boolean

  • applyNoParseRule(rule?: any, content?: any): any
  • Parameters

    • Optional rule: any
    • Optional content: any

    Returns any

  • cleanupForCache(): void
  • Assuming this module is in the cache. Remove internal references to allow freeing some memory.

    Returns void

  • clearDependenciesAndBlocks(): void
  • clearWarningsAndErrors(): void
  • getCurrentLoader(loaderContext?: any, index?: any): null | LoaderItem
  • Parameters

    • Optional loaderContext: any
    • Optional index: any

    Returns null | LoaderItem

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

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

  • getNumberOfChunks(): number
  • getNumberOfErrors(): number
  • getNumberOfWarnings(): number
  • getSourceTypes(): Set<string>
  • Returns 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
  • Returns string

  • invalidateBuild(): void
  • isEntryModule(): boolean
  • Returns boolean

  • isInChunk(chunk: Chunk): boolean
  • Parameters

    Returns boolean

  • isProvided(exportName: string): null | boolean
  • Parameters

    • exportName: string

    Returns null | boolean

  • Parameters

    Returns void

  • 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
  • Parameters

    Returns void

  • restoreFromUnsafeCache(unsafeCacheData?: any, normalModuleFactory?: any): void
  • Parameters

    • Optional unsafeCacheData: any
    • Optional normalModuleFactory: any

    Returns void

  • shouldPreventParsing(noParseRule?: any, request?: any): any
  • Parameters

    • Optional noParseRule: any
    • Optional request: any

    Returns any

  • 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