class CachedSource extends Source
new CachedSource(source, cachedData?): CachedSource
Attributes
cachedSource.buffer(): Buffer
Returns:
BuffercachedSource.buffers(): Buffer<ArrayBufferLike>[]
Returns:
Buffer<ArrayBufferLike>[]cachedSource.clearCache(options?, visited?): void
Attributes
options:
ClearCacheOptionsRelease 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.
cachedSource.getCachedData(): CachedData
Returns:
CachedDatacachedSource.map(options?): RawSourceMap | null
Attributes
options:
MapOptionsReturns:
RawSourceMap | nullcachedSource.original(): Source
Returns:
SourcecachedSource.originalLazy(): Source | (() => Source)
cachedSource.size(): number
Returns:
numbercachedSource.source(): SourceValue
Returns:
SourceValuecachedSource.sourceAndMap(options?): SourceAndMap
Attributes
options:
MapOptionsReturns:
SourceAndMapcachedSource.streamChunks(options, onChunk, onSource, onName): GeneratedSourceInfo
Attributes
cachedSource.updateHash(hash): void
Attributes
hash:
HashLike