Home / Function/ parseRelAttr() — vite Function Reference

parseRelAttr() — vite Function Reference

Architecture documentation for the parseRelAttr() function in html.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  464380b5_e66a_0c5c_7d46_95469500bbf9["parseRelAttr()"]
  f8fe0737_718a_5509_b722_473f207d5906["html.ts"]
  464380b5_e66a_0c5c_7d46_95469500bbf9 -->|defined in| f8fe0737_718a_5509_b722_473f207d5906
  39f26be8_b1d9_a756_3043_474687a6bbb7["buildHtmlPlugin()"]
  39f26be8_b1d9_a756_3043_474687a6bbb7 -->|calls| 464380b5_e66a_0c5c_7d46_95469500bbf9
  7514180d_f3bd_4f07_5c4e_5911c2a70a4c["injectNonceAttributeTagHook()"]
  7514180d_f3bd_4f07_5c4e_5911c2a70a4c -->|calls| 464380b5_e66a_0c5c_7d46_95469500bbf9
  style 464380b5_e66a_0c5c_7d46_95469500bbf9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/plugins/html.ts lines 1047–1049

export function parseRelAttr(attr: string): string[] {
  return attr.split(spaceRe).map((v) => v.toLowerCase())
}

Domain

Subdomains

Frequently Asked Questions

What does parseRelAttr() do?
parseRelAttr() is a function in the vite codebase, defined in packages/vite/src/node/plugins/html.ts.
Where is parseRelAttr() defined?
parseRelAttr() is defined in packages/vite/src/node/plugins/html.ts at line 1047.
What calls parseRelAttr()?
parseRelAttr() is called by 2 function(s): buildHtmlPlugin, injectNonceAttributeTagHook.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free