On this page

These types are not exported by webpack, but they are available to TypeScript consumers.

new DependencyConstructor(...args?): Dependency
Attributes
args:any[]
Returns:Dependency

Attributes
chunkGraph:ChunkGraph
the chunk graph
chunkInitFragments:InitFragment<GenerateContext>[]
chunkInitFragments
codeGenerationResults:CodeGenerationResults
the code generation results
concatenationScope:ConcatenationScope
when in a concatenated module, information about other concatenated modules
dependencyTemplates:DependencyTemplates
the dependency templates
initFragments:InitFragment<GenerateContext>[]
mutable array of init fragments for the current module
module:Module
current module
moduleGraph:ModuleGraph
the module graph
runtime:RuntimeSpec
current runtimes, for which code is generated
runtimeRequirements:Set<string>
the requirements for runtime
runtimeTemplate:RuntimeTemplate
the runtime template

Attributes
the as attribute; defaults to script for chunk/entry refs
chunk:string
chunk name to hint
crossorigin:boolean | "use-credentials" | "anonymous"
CORS mode ( trueanonymous )
entry:string
entrypoint name to hint (expands to one hint per initial chunk)
fetchPriority:"auto" | "high" | "low"
the fetchpriority attribute (allowed on preload / modulepreload / prefetch )
href:string
literal URL (external, preconnect , or an already-hashed asset)
integrity:boolean
SRI for a chunk/entry ref; follows output.html.integrity by default, false opts out
media:string
the media attribute
hint relationship
type:string
the type attribute (MIME)

Attributes
attributes:Record<string, string>
externalType:"module" | "import"
phase:0 | 2 | 1

Returns array of values.

Attributes
loc:string

Attributes

Attributes
index:number
name:string

Attributes
chunkGraph:ChunkGraph
runtime:RuntimeSpec
runtimeTemplate:RuntimeTemplate


Type:ResolveOptions & { dependencyType?: string; resolveToContext?: boolean }
Attributes
dependencyType:string
resolveToContext:boolean