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

Function includeContent

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

Source from the content-addressed store, hash-verified

645 file: 'output.js',
646 source: 'input.js',
647 includeContent(source) {
648 assert.ok(files[source.filename])
649 assert.equal(files[source.filename].original, source.content)
650
651 return source.filename === 'one.js'
652 },
653 })
654
655 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