MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / BundleSourceMapOptions

Interface BundleSourceMapOptions

src/Bundle.ts:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46export interface BundleSourceMapOptions extends Omit<SourceMapOptions, 'includeContent'> {
47 /**
48 * Whether to include the original content of each source in the map's `sourcesContent` array.
49 * Can also be a function that receives the source's `filename` and `content` and returns
50 * whether to include it, allowing per-source control (for example, omitting content for
51 * sources that are otherwise loadable at runtime, such as public http(s) urls).
52 */
53 includeContent?: boolean | ((source: BundledSourceFileRecord) => boolean)
54}
55
56export interface DecodedSourceMapOrMissingContent extends Omit<DecodedSourceMap, 'sourcesContent'> {
57 sourcesContent: Array<string | null>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected