relativeUrlMechanisms.umd() — vite Function Reference
Architecture documentation for the relativeUrlMechanisms.umd() function in build.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 3b7491c0_90d0_3f05_a53d_9586858b2a2e["relativeUrlMechanisms.umd()"] 45981d85_cbdd_e969_8c88_c17072ea0eda["build.ts"] 3b7491c0_90d0_3f05_a53d_9586858b2a2e -->|defined in| 45981d85_cbdd_e969_8c88_c17072ea0eda 2e49850d_c444_cb39_a9e5_ea869b60a7b3["getFileUrlFromRelativePath()"] 3b7491c0_90d0_3f05_a53d_9586858b2a2e -->|calls| 2e49850d_c444_cb39_a9e5_ea869b60a7b3 b4c7575f_1493_ac14_e5b0_c13cced58781["getRelativeUrlFromDocument()"] 3b7491c0_90d0_3f05_a53d_9586858b2a2e -->|calls| b4c7575f_1493_ac14_e5b0_c13cced58781 style 3b7491c0_90d0_3f05_a53d_9586858b2a2e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/build.ts lines 1566–1569
umd: (relativePath) =>
`(typeof document === 'undefined' && typeof location === 'undefined' ? ${getFileUrlFromRelativePath(
relativePath,
)} : ${getRelativeUrlFromDocument(relativePath, true)})`,
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does relativeUrlMechanisms.umd() do?
relativeUrlMechanisms.umd() is a function in the vite codebase, defined in packages/vite/src/node/build.ts.
Where is relativeUrlMechanisms.umd() defined?
relativeUrlMechanisms.umd() is defined in packages/vite/src/node/build.ts at line 1566.
What does relativeUrlMechanisms.umd() call?
relativeUrlMechanisms.umd() calls 2 function(s): getFileUrlFromRelativePath, getRelativeUrlFromDocument.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free