On this page

Extended by RawSource, OriginalSource, ReplaceSource, SourceMapSource, ConcatSource, PrefixSource, CachedSource, SizeOnlySource, CompatSource.

new Source(): Source
Returns:Source
source.buffer(): Buffer
Returns:Buffer
source.buffers(): Buffer<ArrayBufferLike>[]
Returns:Buffer<ArrayBufferLike>[]
source.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.

source.map(options?): RawSourceMap | null
Attributes
options:MapOptions
Returns:RawSourceMap | null
source.size(): number
Returns:number
source.source(): SourceValue
Returns:SourceValue
source.sourceAndMap(options?): SourceAndMap
Attributes
options:MapOptions
Returns:SourceAndMap
source.updateHash(hash): void
Attributes