* Generates a sourcemap object with raw mappings in array form, rather than encoded as a string. * Takes the same options as `generateMap`.
(options: BundleSourceMapOptions = {})
| 274 | * Takes the same options as `generateMap`. |
| 275 | */ |
| 276 | generateDecodedMap(options: BundleSourceMapOptions = {}): DecodedSourceMapOrMissingContent { |
| 277 | const mappings = new Mappings(options.hires) |
| 278 | const { names, x_google_ignoreList } = this._generateMappings(mappings) |
| 279 | |
| 280 | return { |
| 281 | ...this._mapProperties(options, names, x_google_ignoreList), |
| 282 | mappings: mappings.raw, |
| 283 | rangeMappings: mappings.rawRangeMappings, |
| 284 | } |
| 285 | } |
| 286 | |
| 287 | /** |
| 288 | * Generates a version 3 sourcemap covering every source that has a `filename`. |