MCPcopy
hub / github.com/vitejs/vite / isSameContent

Function isSameContent

packages/vite/src/node/plugins/worker.ts:675–683  ·  view source on GitHub ↗
(a: string | Uint8Array, b: string | Uint8Array)

Source from the content-addressed store, hash-verified

673}
674
675function isSameContent(a: string | Uint8Array, b: string | Uint8Array) {
676 if (typeof a === 'string') {
677 if (typeof b === 'string') {
678 return a === b
679 }
680 return Buffer.from(a).equals(b)
681 }
682 return Buffer.from(b).equals(a)
683}

Callers 2

saveAssetMethod · 0.85
generateBundleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected