PackageData Type — vite Architecture
Architecture documentation for the PackageData type/interface in packages.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 85687332_e8b0_0bd2_c500_5314840ec052["PackageData"] dff9cadb_1e8c_7fc9_4119_a173f1f21cbd["packages.ts"] 85687332_e8b0_0bd2_c500_5314840ec052 -->|defined in| dff9cadb_1e8c_7fc9_4119_a173f1f21cbd style 85687332_e8b0_0bd2_c500_5314840ec052 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/packages.ts lines 25–49
export interface PackageData {
dir: string
hasSideEffects: (id: string) => boolean | 'no-treeshake' | null
setResolvedCache: (
key: string,
entry: string,
options: InternalResolveOptions,
) => void
getResolvedCache: (
key: string,
options: InternalResolveOptions,
) => string | undefined
data: {
[field: string]: any
name: string
type: string
version: string
main: string
module: string
browser: string | Record<string, string | false>
exports: string | Record<string, any> | string[]
imports: Record<string, any>
dependencies: Record<string, string>
}
}
Defined In
Source
Frequently Asked Questions
What is the PackageData type?
PackageData is a type/interface in the vite codebase, defined in packages/vite/src/node/packages.ts.
Where is PackageData defined?
PackageData is defined in packages/vite/src/node/packages.ts at line 25.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free