On this page

class webpack.sources.ConcatSource extends Source
new ConcatSource(...args?): ConcatSource
Attributes
add(item): void
Attributes

addAllSkipOptimizing(items): void
Attributes

buffer(): Buffer
Returns:
{Buffer}

buffers(): Buffer<ArrayBufferLike>[]
Returns:
{Buffer []}

clearCache(options?, visited?): void
Attributes
visited:
{WeakSet }
Returns:<void>

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>
[]

map(options?): RawSourceMap | null
Attributes

size(): number
Returns:<number>

source(): SourceValue

sourceAndMap(options?): SourceAndMap
Attributes

streamChunks(options, onChunk, onSource, onName): GeneratedSourceInfo
Attributes
onChunk:
(chunk: <string> | <undefined> , generatedLine: <number> , generatedColumn: <number> , sourceIndex: <number> , originalLine: <number> , originalColumn: <number> , nameIndex: <number> ) => <void>
onSource:
(sourceIndex: <number> , source: <string> | <null> , sourceContent?: <string> ) => <void>
onName:
(nameIndex: <number> , name: <string> ) => <void>

updateHash(hash): void
Attributes
Returns:<void>