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