Class: ExternalModule
Defined in: webpack/types.d.ts:5683Extends
Constructors
Constructor
new ExternalModule(Defined in: webpack/types.d.ts:5684request,type,userRequest,dependencyMeta?):ExternalModule
Parameters
request
ExternalModuleRequest
type
ExternalsType
userRequest
string
dependencyMeta?
AssetDependencyMeta | CssImportDependencyMeta | ImportDependencyMeta
Returns
ExternalModule
Overrides
Module.constructor
Properties
blocks
blocks: AsyncDependenciesBlock[]
Defined in: webpack/types.d.ts:4110
Inherited from
Module.blocks
buildInfo?
Defined in: webpack/types.d.ts:10642optionalbuildInfo:BuildInfo
Inherited from
Module.buildInfo
buildMeta?
Defined in: webpack/types.d.ts:10641optionalbuildMeta:BuildMeta
Inherited from
Module.buildMeta
codeGenerationDependencies?
Defined in: webpack/types.d.ts:10644optionalcodeGenerationDependencies:Dependency[]
Inherited from
Module.codeGenerationDependencies
context
context: string
Defined in: webpack/types.d.ts:10632
Inherited from
ModuleChunkLoadingRuntimeModule.context
debugId
debugId: number
Defined in: webpack/types.d.ts:10635
Inherited from
Module.debugId
dependencies
dependencies: Dependency[]
Defined in: webpack/types.d.ts:4109
Inherited from
Module.dependencies
dependencyMeta?
Defined in: webpack/types.d.ts:5696optionaldependencyMeta:AssetDependencyMeta|CssImportDependencyMeta|ImportDependencyMeta
depth
depth: number
Defined in: webpack/types.d.ts:10655
Inherited from
ModuleChunkLoadingRuntimeModule.depth
externalType
externalType: ExternalsType
Defined in: webpack/types.d.ts:5694
factoryMeta?
Defined in: webpack/types.d.ts:10637optionalfactoryMeta:FactoryMeta
Inherited from
Module.factoryMeta
hot
hot: boolean
Defined in: webpack/types.d.ts:10640
Inherited from
Module.hot
id
id:Defined in: webpack/types.d.ts:10649string|number
Deprecated
Inherited from
ModuleChunkLoadingRuntimeModule.id
index
index: number
Defined in: webpack/types.d.ts:10653
Inherited from
ModuleChunkLoadingRuntimeModule.index
index2
index2: number
Defined in: webpack/types.d.ts:10654
Inherited from
ModuleChunkLoadingRuntimeModule.index2
issuer?
Defined in: webpack/types.d.ts:10656optionalissuer:Module
Inherited from
ModuleChunkLoadingRuntimeModule.issuer
layer
layer: string
Defined in: webpack/types.d.ts:10633
Inherited from
ModuleChunkLoadingRuntimeModule.layer
needId
needId: boolean
Defined in: webpack/types.d.ts:10634
Inherited from
Module.needId
parent?
Defined in: webpack/types.d.ts:4111optionalparent:DependenciesBlock
Inherited from
Module.parent
presentationalDependencies?
Defined in: webpack/types.d.ts:10643optionalpresentationalDependencies:Dependency[]
Inherited from
Module.presentationalDependencies
profile?
Defined in: webpack/types.d.ts:10652optionalprofile:ModuleProfile
Inherited from
Module.profile
request
request: ExternalModuleRequest
Defined in: webpack/types.d.ts:5693
resolveOptions?
Defined in: webpack/types.d.ts:10636optionalresolveOptions:ResolveOptions
Inherited from
Module.resolveOptions
type
type: string
Defined in: webpack/types.d.ts:10631
Inherited from
Module.type
used
used: any
Defined in: webpack/types.d.ts:10790
Inherited from
Module.used
userRequest
userRequest: string
Defined in: webpack/types.d.ts:5695
useSimpleSourceMap
useSimpleSourceMap: boolean
Defined in: webpack/types.d.ts:10639
Inherited from
Module.useSimpleSourceMap
useSourceMap
useSourceMap: boolean
Defined in: webpack/types.d.ts:10638
Inherited from
Module.useSourceMap
getExternalModuleNodeCommonjsInitFragment()
Defined in: webpack/types.d.ts:5709staticgetExternalModuleNodeCommonjsInitFragment: (runtimeTemplate) =>InitFragment<ChunkRenderContextJavascriptModulesPlugin>
Parameters
runtimeTemplate
RuntimeTemplate
Returns
InitFragment<ChunkRenderContextJavascriptModulesPlugin>
ModuleExternalInitFragment
Defined in: webpack/types.d.ts:5708staticModuleExternalInitFragment: typeofModuleExternalInitFragment
Accessors
chunksIterable
Get Signature
get chunksIterable():Defined in: webpack/types.d.ts:10673Iterable<Chunk>
Returns
Iterable<Chunk>
Inherited from
Module.chunksIterable
errors
Get Signature
get errors(): any
Defined in: webpack/types.d.ts:10788
Returns
any
Inherited from
Module.errors
exportsArgument
Get Signature
get exportsArgument(): string
Defined in: webpack/types.d.ts:10675
Returns
string
Inherited from
Module.exportsArgument
hasEqualsChunks
Get Signature
get hasEqualsChunks(): any
Defined in: webpack/types.d.ts:10786
Returns
any
Inherited from
Module.hasEqualsChunks
hash
Get Signature
get hash(): string
Defined in: webpack/types.d.ts:10650
Returns
string
Inherited from
Module.hash
isUsed
Get Signature
get isUsed(): any
Defined in: webpack/types.d.ts:10787
Returns
any
Inherited from
Module.isUsed
moduleArgument
Get Signature
get moduleArgument(): string
Defined in: webpack/types.d.ts:10676
Returns
string
Inherited from
Module.moduleArgument
optimizationBailout
Get Signature
get optimizationBailout(): (Defined in: webpack/types.d.ts:10662string| (requestShortener) =>string)[]
Deprecated
Returns
(string | (requestShortener) => string)[]
Inherited from
Module.optimizationBailout
optional
Get Signature
get optional(): boolean
Defined in: webpack/types.d.ts:10666
Returns
boolean
Inherited from
Module.optional
renderedHash
Get Signature
get renderedHash(): string
Defined in: webpack/types.d.ts:10651
Returns
string
Inherited from
Module.renderedHash
usedExports
Get Signature
get usedExports():Defined in: webpack/types.d.ts:10657boolean|SortableSet<string>
Returns
boolean | SortableSet<string>
Inherited from
ModuleChunkLoadingRuntimeModule.usedExports
warnings
Get Signature
get warnings(): any
Defined in: webpack/types.d.ts:10789
Returns
any
Inherited from
Module.warnings
Methods
addBlock()
addBlock(Defined in: webpack/types.d.ts:4118 Adds a DependencyBlock to DependencyBlock relationship. This is used for when a Module has a AsyncDependencyBlock tie (for code-splitting)block):void
Parameters
block
AsyncDependenciesBlock
Returns
void
Inherited from
Module.addBlock
addCacheDependencies()
addCacheDependencies(Defined in: webpack/types.d.ts:10780fileDependencies,contextDependencies,missingDependencies,buildDependencies):void
Parameters
fileDependencies
LazySet<string>
contextDependencies
LazySet<string>
missingDependencies
LazySet<string>
buildDependencies
LazySet<string>
Returns
void
Inherited from
Module.addCacheDependencies
addChunk()
addChunk(Defined in: webpack/types.d.ts:10667chunk):boolean
Parameters
chunk
Chunk
Returns
boolean
Inherited from
Module.addChunk
addCodeGenerationDependency()
addCodeGenerationDependency(Defined in: webpack/types.d.ts:10679codeGenerationDependency):void
Parameters
codeGenerationDependency
Dependency
Returns
void
Inherited from
Module.addCodeGenerationDependency
addDependency()
addDependency(Defined in: webpack/types.d.ts:4119dependency):void
Parameters
dependency
Dependency
Returns
void
Inherited from
Module.addDependency
addError()
addError(Defined in: webpack/types.d.ts:10683error):void
Parameters
error
WebpackError
Returns
void
Inherited from
Module.addError
addPresentationalDependency()
addPresentationalDependency(Defined in: webpack/types.d.ts:10678presentationalDependency):void
Parameters
presentationalDependency
Dependency
Returns
void
Inherited from
Module.addPresentationalDependency
addWarning()
addWarning(Defined in: webpack/types.d.ts:10680warning):void
Parameters
warning
WebpackError
Returns
void
Inherited from
Module.addWarning
build()
build(Defined in: webpack/types.d.ts:10724options,compilation,resolver,fs,callback):void
Parameters
options
WebpackOptionsNormalizedWithDefaults
compilation
Compilation
resolver
ResolverWithOptions
fs
InputFileSystem
callback
(err?) => void
Returns
void
Inherited from
Module.build
chunkCondition()
chunkCondition(Defined in: webpack/types.d.ts:10759chunk,compilation):boolean
Parameters
chunk
Chunk
compilation
Compilation
Returns
boolean
Inherited from
Module.chunkCondition
cleanupForCache()
cleanupForCache(): void
Defined in: webpack/types.d.ts:10778
Assuming this module is in the cache. Remove internal references to allow freeing some memory.
Returns
void
Inherited from
Module.cleanupForCache
clearDependenciesAndBlocks()
clearDependenciesAndBlocks(): void
Defined in: webpack/types.d.ts:4125
Removes all dependencies and blocks
Returns
void
Inherited from
Module.clearDependenciesAndBlocks
clearWarningsAndErrors()
clearWarningsAndErrors(): void
Defined in: webpack/types.d.ts:10690
removes all warnings and errors
Returns
void
Inherited from
Module.clearWarningsAndErrors
codeGeneration()
codeGeneration(Defined in: webpack/types.d.ts:10758context):CodeGenerationResult
Parameters
context
CodeGenerationContext
Returns
CodeGenerationResult
Inherited from
Module.codeGeneration
deserialize()
deserialize(Defined in: webpack/types.d.ts:4128__namedParameters):void
Parameters
__namedParameters
ObjectDeserializerContext
Returns
void
Inherited from
Module.deserialize
getChunks()
getChunks(): Chunk[]
Defined in: webpack/types.d.ts:10671
Returns
Chunk[]
Inherited from
Module.getChunks
getConcatenationBailoutReason()
getConcatenationBailoutReason(Defined in: webpack/types.d.ts:10754context):string
Parameters
context
ConcatenationBailoutReasonContext
Returns
string
Inherited from
Module.getConcatenationBailoutReason
getErrors()
getErrors():Defined in: webpack/types.d.ts:10684Iterable<WebpackError,any,any>
Returns
Iterable<WebpackError, any, any>
Inherited from
Module.getErrors
getExportsType()
getExportsType(Defined in: webpack/types.d.ts:10677moduleGraph,strict?):ExportsType
Parameters
moduleGraph
ModuleGraph
strict?
boolean
Returns
ExportsType
Inherited from
Module.getExportsType
getNumberOfChunks()
getNumberOfChunks(): number
Defined in: webpack/types.d.ts:10672
Returns
number
Inherited from
Module.getNumberOfChunks
getNumberOfErrors()
getNumberOfErrors(): number
Defined in: webpack/types.d.ts:10685
Returns
number
Inherited from
Module.getNumberOfErrors
getNumberOfWarnings()
getNumberOfWarnings(): number
Defined in: webpack/types.d.ts:10682
Returns
number
Inherited from
Module.getNumberOfWarnings
getRootBlock()
getRootBlock(): DependenciesBlock
Defined in: webpack/types.d.ts:4112
Returns
DependenciesBlock
Inherited from
Module.getRootBlock
getSideEffectsConnectionState()
getSideEffectsConnectionState(Defined in: webpack/types.d.ts:10757moduleGraph):ConnectionState
Parameters
moduleGraph
ModuleGraph
Returns
ConnectionState
Inherited from
Module.getSideEffectsConnectionState
getSourceBasicTypes()
getSourceBasicTypes():Defined in: webpack/types.d.ts:10740 Basic source types are high-level categories like javascript, css, webassembly, etc. We only have built-in knowledge about the javascript basic type here; other basic types may be added or changed over time by generators and do not need to be handled or detected here. Some modules, e.g. RemoteModule, may return non-basic source types like “remote” and “share-init” from getSourceTypes(), but their generated output is still JavaScript, i.e. their basic type is JS.ReadonlySet<string>
Returns
ReadonlySet<string>
Inherited from
Module.getSourceBasicTypes
getSourceTypes()
getSourceTypes():Defined in: webpack/types.d.ts:10731ReadonlySet<string>
Returns
ReadonlySet<string>
Inherited from
Module.getSourceTypes
getUnsafeCacheData()
getUnsafeCacheData(): UnsafeCacheData
Defined in: webpack/types.d.ts:10773
Module should be unsafe cached. Get data that’s needed for that.
This data will be passed to restoreFromUnsafeCache later.
Returns
UnsafeCacheData
Inherited from
Module.getUnsafeCacheData
getWarnings()
getWarnings():Defined in: webpack/types.d.ts:10681Iterable<WebpackError,any,any>
Returns
Iterable<WebpackError, any, any>
Inherited from
Module.getWarnings
hasChunkCondition()
hasChunkCondition(): boolean
Defined in: webpack/types.d.ts:10760
Returns
boolean
Inherited from
Module.hasChunkCondition
hasReasonForChunk()
hasReasonForChunk(Defined in: webpack/types.d.ts:10702chunk,moduleGraph,chunkGraph):boolean
Parameters
chunk
Chunk
moduleGraph
ModuleGraph
chunkGraph
ChunkGraph
Returns
boolean
Inherited from
Module.hasReasonForChunk
hasReasons()
hasReasons(Defined in: webpack/types.d.ts:10707moduleGraph,runtime):boolean
Parameters
moduleGraph
ModuleGraph
runtime
RuntimeSpec
Returns
boolean
Inherited from
Module.hasReasons
identifier()
identifier(): string
Defined in: webpack/types.d.ts:10722
Returns
string
Inherited from
Module.identifier
invalidateBuild()
invalidateBuild(): void
Defined in: webpack/types.d.ts:10721
Returns
void
Inherited from
Module.invalidateBuild
isAccessibleInChunk()
isAccessibleInChunk(Defined in: webpack/types.d.ts:10692chunkGraph,chunk,ignoreChunk?):boolean
Parameters
chunkGraph
ChunkGraph
chunk
Chunk
ignoreChunk?
Chunk
Returns
boolean
Inherited from
Module.isAccessibleInChunk
isAccessibleInChunkGroup()
isAccessibleInChunkGroup(Defined in: webpack/types.d.ts:10697chunkGraph,chunkGroup,ignoreChunk?):boolean
Parameters
chunkGraph
ChunkGraph
chunkGroup
ChunkGroup
ignoreChunk?
Chunk
Returns
boolean
Inherited from
Module.isAccessibleInChunkGroup
isEntryModule()
isEntryModule(): boolean
Defined in: webpack/types.d.ts:10670
Returns
boolean
Inherited from
Module.isEntryModule
isInChunk()
isInChunk(Defined in: webpack/types.d.ts:10669chunk):boolean
Parameters
chunk
Chunk
Returns
boolean
Inherited from
Module.isInChunk
isOptional()
isOptional(Defined in: webpack/types.d.ts:10691moduleGraph):boolean
Parameters
moduleGraph
ModuleGraph
Returns
boolean
Inherited from
Module.isOptional
isProvided()
isProvided(Defined in: webpack/types.d.ts:10674exportName):boolean
Parameters
exportName
string
Returns
boolean
Inherited from
Module.isProvided
libIdent()
libIdent(Defined in: webpack/types.d.ts:10752options):string
Parameters
options
LibIdentOptions
Returns
string
Inherited from
Module.libIdent
nameForCondition()
nameForCondition(): string
Defined in: webpack/types.d.ts:10753
Returns
string
Inherited from
Module.nameForCondition
needBuild()
needBuild(Defined in: webpack/types.d.ts:10708context,callback):void
Parameters
context
NeedBuildContext
callback
(err?, needBuild?) => void
Returns
void
Inherited from
Module.needBuild
needRebuild()
needRebuild(Defined in: webpack/types.d.ts:10717 Use needBuild insteadfileTimestamps,contextTimestamps):boolean
Parameters
fileTimestamps
Map<string, number>
contextTimestamps
Map<string, number>
Returns
boolean
Deprecated
Inherited from
Module.needRebuild
originalSource()
originalSource(): Source
Defined in: webpack/types.d.ts:10779
Returns
Source
Inherited from
Module.originalSource
readableIdentifier()
readableIdentifier(Defined in: webpack/types.d.ts:10723requestShortener):string
Parameters
requestShortener
RequestShortener
Returns
string
Inherited from
Module.readableIdentifier
removeChunk()
removeChunk(Defined in: webpack/types.d.ts:10668chunk):void
Parameters
chunk
Chunk
Returns
void
Inherited from
Module.removeChunk
removeDependency()
removeDependency(Defined in: webpack/types.d.ts:4120dependency):void
Parameters
dependency
Dependency
Returns
void
Inherited from
Module.removeDependency
restoreFromUnsafeCache()
restoreFromUnsafeCache(Defined in: webpack/types.d.ts:5704 restore unsafe cache dataunsafeCacheData,normalModuleFactory):void
Parameters
unsafeCacheData
UnsafeCacheData
normalModuleFactory
NormalModuleFactory
Returns
void
serialize()
serialize(Defined in: webpack/types.d.ts:4127__namedParameters):void
Parameters
__namedParameters
ObjectSerializerContext
Returns
void
Inherited from
Module.serialize
size()
size(Defined in: webpack/types.d.ts:10751type?):number
Parameters
type?
string
Returns
number
Inherited from
Module.size
source()
source(Defined in: webpack/types.d.ts:10746 Use codeGeneration() insteaddependencyTemplates,runtimeTemplate,type?):Source
Parameters
dependencyTemplates
DependencyTemplates
runtimeTemplate
RuntimeTemplate
type?
string
Returns
Source
Deprecated
Inherited from
Module.source
updateCacheModule()
updateCacheModule(Defined in: webpack/types.d.ts:10767 Assuming this module is in the cache. Update the (cached) module with the fresh module from the factory. Usually updates internal references and properties.module):void
Parameters
module
Module
Returns
void
Inherited from
Module.updateCacheModule
updateHash()
updateHash(Defined in: webpack/types.d.ts:4126hash,context):void
Parameters
hash
Hash
context
UpdateHashContextDependency
Returns
void
Inherited from
Module.updateHash