Home / Function/ removeViteIgnoreAttr() — vite Function Reference

removeViteIgnoreAttr() — vite Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  4a1bdd32_bdc1_e08e_2015_af6c39dd7bd4["removeViteIgnoreAttr()"]
  f8fe0737_718a_5509_b722_473f207d5906["html.ts"]
  4a1bdd32_bdc1_e08e_2015_af6c39dd7bd4 -->|defined in| f8fe0737_718a_5509_b722_473f207d5906
  39f26be8_b1d9_a756_3043_474687a6bbb7["buildHtmlPlugin()"]
  39f26be8_b1d9_a756_3043_474687a6bbb7 -->|calls| 4a1bdd32_bdc1_e08e_2015_af6c39dd7bd4
  c7929a5b_9791_180a_9c0b_4f479fb4cf3f["devHtmlHook()"]
  c7929a5b_9791_180a_9c0b_4f479fb4cf3f -->|calls| 4a1bdd32_bdc1_e08e_2015_af6c39dd7bd4
  style 4a1bdd32_bdc1_e08e_2015_af6c39dd7bd4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/plugins/html.ts lines 283–294

export function removeViteIgnoreAttr(
  s: MagicString,
  sourceCodeLocation: Token.Location,
): MagicString {
  const loc = (sourceCodeLocation as Token.LocationWithAttributes).attrs?.[
    'vite-ignore'
  ]
  if (loc) {
    s.remove(loc.startOffset, loc.endOffset)
  }
  return s
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free