Home / Function/ findPreloadMarker() — vite Function Reference

findPreloadMarker() — vite Function Reference

Architecture documentation for the findPreloadMarker() function in importAnalysisBuild.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  1026d697_d151_fe44_5983_b0479369261c["findPreloadMarker()"]
  04ad4685_2ce3_556a_152b_c93668a74b3b["importAnalysisBuild.ts"]
  1026d697_d151_fe44_5983_b0479369261c -->|defined in| 04ad4685_2ce3_556a_152b_c93668a74b3b
  6d315957_5b5c_845c_10c4_b8cb46bc58eb["buildImportAnalysisPlugin()"]
  6d315957_5b5c_845c_10c4_b8cb46bc58eb -->|calls| 1026d697_d151_fe44_5983_b0479369261c
  style 1026d697_d151_fe44_5983_b0479369261c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/plugins/importAnalysisBuild.ts lines 41–45

function findPreloadMarker(str: string, pos: number = 0): number {
  preloadMarkerRE.lastIndex = pos
  const result = preloadMarkerRE.exec(str)
  return result?.index ?? -1
}

Domain

Subdomains

Frequently Asked Questions

What does findPreloadMarker() do?
findPreloadMarker() is a function in the vite codebase, defined in packages/vite/src/node/plugins/importAnalysisBuild.ts.
Where is findPreloadMarker() defined?
findPreloadMarker() is defined in packages/vite/src/node/plugins/importAnalysisBuild.ts at line 41.
What calls findPreloadMarker()?
findPreloadMarker() is called by 1 function(s): buildImportAnalysisPlugin.

Analyze Your Own Codebase

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

Try Supermodel Free