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

Interface SourceMapOptions

src/SourceMap.ts:12–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12export interface SourceMapOptions {
13 /**
14 * Whether the mapping should be high-resolution.
15 * Hi-res mappings map every single character, meaning (for example) your devtools will always
16 * be able to pinpoint the exact location of function calls and so on.
17 * With lo-res mappings, devtools may only be able to identify the correct
18 * line - but they're quicker to generate and less bulky.
19 * You can also set `"boundary"` to generate a semi-hi-res mappings segmented per word boundary
20 * instead of per character, suitable for string semantics that are separated by words.
21 * If sourcemap locations have been specified with s.addSourceMapLocation(), they will be used here.
22 */
23 hires?: boolean | 'boundary'
24 /**
25 * The filename where you plan to write the sourcemap.
26 */
27 file?: string
28 /**
29 * The filename of the file containing the original source.
30 */
31 source?: string
32 /**
33 * Whether to include the original content in the map's sourcesContent array.
34 */
35 includeContent?: boolean
36}
37
38export type SourceMapSegment
39 = | [number]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected