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

Function includeContent

test/Bundle.test.ts:788–793  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

786 file: 'output.js',
787 source: 'input.js',
788 includeContent(source) {
789 assert.ok(files[source.filename])
790 assert.equal(files[source.filename].original, source.content)
791
792 return source.filename === 'one.js'
793 },
794 })
795
796 assert.equal(map.sourcesContent[0], files['one.js'].original)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected