Home / Function/ hasDefaultExport() — vue Function Reference

hasDefaultExport() — vue Function Reference

Architecture documentation for the hasDefaultExport() function in rewriteDefault.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  25e4973d_93b9_9dbe_1aa4_f503bf9fa1a2["hasDefaultExport()"]
  95a0be6b_4d0f_5c1a_879f_f3e1d3321465["rewriteDefault.ts"]
  25e4973d_93b9_9dbe_1aa4_f503bf9fa1a2 -->|defined in| 95a0be6b_4d0f_5c1a_879f_f3e1d3321465
  3f2874de_dacf_5309_7716_ce1aa1b354a6["rewriteDefault()"]
  3f2874de_dacf_5309_7716_ce1aa1b354a6 -->|calls| 25e4973d_93b9_9dbe_1aa4_f503bf9fa1a2
  style 25e4973d_93b9_9dbe_1aa4_f503bf9fa1a2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/compiler-sfc/src/rewriteDefault.ts lines 97–99

export function hasDefaultExport(input: string): boolean {
  return defaultExportRE.test(input) || namedDefaultExportRE.test(input)
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does hasDefaultExport() do?
hasDefaultExport() is a function in the vue codebase, defined in packages/compiler-sfc/src/rewriteDefault.ts.
Where is hasDefaultExport() defined?
hasDefaultExport() is defined in packages/compiler-sfc/src/rewriteDefault.ts at line 97.
What calls hasDefaultExport()?
hasDefaultExport() is called by 1 function(s): rewriteDefault.

Analyze Your Own Codebase

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

Try Supermodel Free