isEmpty() — vite Function Reference
Architecture documentation for the isEmpty() function in index.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 3260e851_cf2f_29ed_2cda_04369c8822a5["isEmpty()"] ebed723b_f143_390f_439d_dfaa680d6d16["index.ts"] 3260e851_cf2f_29ed_2cda_04369c8822a5 -->|defined in| ebed723b_f143_390f_439d_dfaa680d6d16 6d5b7f61_22fe_5498_a292_5c478890d5f3["init()"] 6d5b7f61_22fe_5498_a292_5c478890d5f3 -->|calls| 3260e851_cf2f_29ed_2cda_04369c8822a5 style 3260e851_cf2f_29ed_2cda_04369c8822a5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/create-vite/src/index.ts lines 758–761
function isEmpty(path: string) {
const files = fs.readdirSync(path)
return files.length === 0 || (files.length === 1 && files[0] === '.git')
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does isEmpty() do?
isEmpty() is a function in the vite codebase, defined in packages/create-vite/src/index.ts.
Where is isEmpty() defined?
isEmpty() is defined in packages/create-vite/src/index.ts at line 758.
What calls isEmpty()?
isEmpty() is called by 1 function(s): init.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free