Home / Function/ stripBomTag() — vite Function Reference

stripBomTag() — vite Function Reference

Architecture documentation for the stripBomTag() function in utils.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  cd901a4b_1290_4e3f_0c59_f8621634cb5a["stripBomTag()"]
  031bc221_67a8_c579_f2bf_bb30a08beeb2["utils.ts"]
  cd901a4b_1290_4e3f_0c59_f8621634cb5a -->|defined in| 031bc221_67a8_c579_f2bf_bb30a08beeb2
  c2d70c8c_c901_2d4f_df10_d0fa8607751f["loadPackageData()"]
  c2d70c8c_c901_2d4f_df10_d0fa8607751f -->|calls| cd901a4b_1290_4e3f_0c59_f8621634cb5a
  cd131d16_e223_ab79_1b7c_8ea449ae51a2["cssPostPlugin()"]
  cd131d16_e223_ab79_1b7c_8ea449ae51a2 -->|calls| cd901a4b_1290_4e3f_0c59_f8621634cb5a
  a1fc1de5_905b_efe7_d960_3597604fbdfe["importAnalysisPlugin()"]
  a1fc1de5_905b_efe7_d960_3597604fbdfe -->|calls| cd901a4b_1290_4e3f_0c59_f8621634cb5a
  style cd901a4b_1290_4e3f_0c59_f8621634cb5a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/utils.ts lines 1486–1492

export function stripBomTag(content: string): string {
  if (content.charCodeAt(0) === 0xfeff) {
    return content.slice(1)
  }

  return content
}

Domain

Subdomains

Frequently Asked Questions

What does stripBomTag() do?
stripBomTag() is a function in the vite codebase, defined in packages/vite/src/node/utils.ts.
Where is stripBomTag() defined?
stripBomTag() is defined in packages/vite/src/node/utils.ts at line 1486.
What calls stripBomTag()?
stripBomTag() is called by 3 function(s): cssPostPlugin, importAnalysisPlugin, loadPackageData.

Analyze Your Own Codebase

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

Try Supermodel Free