class webpack.sources.ConcatSource extends Source
new ConcatSource(...args?): ConcatSource
Attributes
args:
ConcatSourceChild[]Returns:
ConcatSourceM
add
add(item): void
Attributes
item:
ConcatSourceChildReturns:
voidaddAllSkipOptimizing(items): void
Attributes
items:
ConcatSourceChild[]Returns:
voidbuffer(): Buffer
Returns:
Bufferbuffers(): Buffer<ArrayBufferLike>[]
Returns:
Buffer<ArrayBufferLike>[]clearCache(options?, visited?): void
Attributes
Release cached data held by this source. clearCache is a memory
hint: it never affects correctness or output, only how expensive
the next read is. Subclasses override; the base is a no-op so
every Source supports the call. Composite sources always recurse
into wrapped sources. When the same child is reachable via several
parents (e.g. modules shared across webpack chunks), pass a shared
visited WeakSet so each subtree is walked at most once.
Not safe to call concurrently with source/map/sourceAndMap/
streamChunks/updateHash on the same instance.
getChildren(): Source[]
Returns:
Source[]M
map
map(options?): RawSourceMap | null
Attributes
options:
MapOptionsReturns:
RawSourceMap | nullM
size
size(): number
Returns:
numbersource(): SourceValue
Returns:
SourceValuesourceAndMap(options?): SourceAndMap
Attributes
options:
MapOptionsReturns:
SourceAndMapstreamChunks(options, onChunk, onSource, onName): GeneratedSourceInfo
Attributes
updateHash(hash): void
Attributes
Type:
string | Source | SourceLike