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

Interface BundleSourceMapOptions

src/Bundle.ts:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36export interface BundleSourceMapOptions extends Omit<SourceMapOptions, 'includeContent'> {
37 /**
38 * Whether to include the original content of each source in the map's `sourcesContent` array.
39 * Can also be a function that receives the source's `filename` and `content` and returns
40 * whether to include it, allowing per-source control (for example, omitting content for
41 * sources that are otherwise loadable at runtime, such as public http(s) urls).
42 */
43 includeContent?: boolean | ((source: BundledSourceFileRecord) => boolean)
44}
45
46export interface DecodedSourceMapOrMissingContent extends Omit<DecodedSourceMap, 'sourcesContent'> {
47 sourcesContent: Array<string | null>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected