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

Interface BundleSourceMapOptions

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected