isSameContent() — vite Function Reference
Architecture documentation for the isSameContent() function in worker.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD e011cec7_d231_e145_ea9f_188c1eb89802["isSameContent()"] 971bf58d_477c_c4d8_0c3b_735e572044c4["worker.ts"] e011cec7_d231_e145_ea9f_188c1eb89802 -->|defined in| 971bf58d_477c_c4d8_0c3b_735e572044c4 91a8cbc6_85d8_5b82_e23e_148b871783df["saveAsset()"] 91a8cbc6_85d8_5b82_e23e_148b871783df -->|calls| e011cec7_d231_e145_ea9f_188c1eb89802 1a156a4f_5015_f60f_3a54_6eb2168861ca["webWorkerPlugin()"] 1a156a4f_5015_f60f_3a54_6eb2168861ca -->|calls| e011cec7_d231_e145_ea9f_188c1eb89802 style e011cec7_d231_e145_ea9f_188c1eb89802 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/plugins/worker.ts lines 662–670
function isSameContent(a: string | Uint8Array, b: string | Uint8Array) {
if (typeof a === 'string') {
if (typeof b === 'string') {
return a === b
}
return Buffer.from(a).equals(b)
}
return Buffer.from(b).equals(a)
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does isSameContent() do?
isSameContent() is a function in the vite codebase, defined in packages/vite/src/node/plugins/worker.ts.
Where is isSameContent() defined?
isSameContent() is defined in packages/vite/src/node/plugins/worker.ts at line 662.
What calls isSameContent()?
isSameContent() is called by 2 function(s): saveAsset, webWorkerPlugin.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free