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
  3b943cf7_6d62_ecf7_226d_a35892b66468["hasDefaultExport()"]
  7e881ac8_aa91_c10a_bd6a_7071900a38fa["rewriteDefault()"]
  7e881ac8_aa91_c10a_bd6a_7071900a38fa -->|calls| 3b943cf7_6d62_ecf7_226d_a35892b66468
  style 3b943cf7_6d62_ecf7_226d_a35892b66468 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.
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