resolveHtmlTransforms() — vite Function Reference
Architecture documentation for the resolveHtmlTransforms() function in html.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD f0ebd795_2bfe_7b80_5eb1_60aa49511704["resolveHtmlTransforms()"] f8fe0737_718a_5509_b722_473f207d5906["html.ts"] f0ebd795_2bfe_7b80_5eb1_60aa49511704 -->|defined in| f8fe0737_718a_5509_b722_473f207d5906 39f26be8_b1d9_a756_3043_474687a6bbb7["buildHtmlPlugin()"] 39f26be8_b1d9_a756_3043_474687a6bbb7 -->|calls| f0ebd795_2bfe_7b80_5eb1_60aa49511704 7a53712a_b13b_4bc2_85fc_b4de5cb705fb["createDevHtmlTransformFn()"] 7a53712a_b13b_4bc2_85fc_b4de5cb705fb -->|calls| f0ebd795_2bfe_7b80_5eb1_60aa49511704 style f0ebd795_2bfe_7b80_5eb1_60aa49511704 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/plugins/html.ts lines 1302–1332
export function resolveHtmlTransforms(
plugins: readonly Plugin[],
): [
IndexHtmlTransformHook[],
IndexHtmlTransformHook[],
IndexHtmlTransformHook[],
] {
const preHooks: IndexHtmlTransformHook[] = []
const normalHooks: IndexHtmlTransformHook[] = []
const postHooks: IndexHtmlTransformHook[] = []
for (const plugin of plugins) {
const hook = plugin.transformIndexHtml
if (!hook) continue
if (typeof hook === 'function') {
normalHooks.push(hook)
} else {
const handler = hook.handler
if (hook.order === 'pre') {
preHooks.push(handler)
} else if (hook.order === 'post') {
postHooks.push(handler)
} else {
normalHooks.push(handler)
}
}
}
return [preHooks, normalHooks, postHooks]
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does resolveHtmlTransforms() do?
resolveHtmlTransforms() is a function in the vite codebase, defined in packages/vite/src/node/plugins/html.ts.
Where is resolveHtmlTransforms() defined?
resolveHtmlTransforms() is defined in packages/vite/src/node/plugins/html.ts at line 1302.
What calls resolveHtmlTransforms()?
resolveHtmlTransforms() is called by 2 function(s): buildHtmlPlugin, createDevHtmlTransformFn.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free