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

Function includeContent

tests/Bundle/generate-map.test.ts:659–664  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

657 file: 'output.js',
658 source: 'input.js',
659 includeContent(source) {
660 assert.ok(files[source.filename])
661 assert.equal(files[source.filename].original, source.content)
662
663 return source.filename === 'one.js'
664 },
665 })
666
667 assert.equal(map.sourcesContent[0], files['one.js'].original)

Callers

nothing calls this directly

Calls 1

generateMapMethod · 0.45

Tested by

no test coverage detected