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

Method generateMap

src/Bundle.ts:246–252  ·  view source on GitHub ↗
(
    options?: BundleSourceMapOptions,
  )

Source from the content-addressed store, hash-verified

244 }
245
246 generateMap(
247 options?: BundleSourceMapOptions,
248 ): Omit<SourceMap, 'sourcesContent'> & { sourcesContent: Array<string | null> } {
249 return new SourceMap(this.generateDecodedMap(options)) as Omit<SourceMap, 'sourcesContent'> & {
250 sourcesContent: Array<string | null>
251 }
252 }
253
254 getIndentString(): string {
255 const indentStringCounts = {}

Callers 3

Bundle.test.tsFile · 0.45
clone.test.tsFile · 0.45

Calls 1

generateDecodedMapMethod · 0.95

Tested by

no test coverage detected