Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DepsResult ¶
type ViteManifest ¶
type ViteManifest map[string]ViteManifestChunk
func ReadViteManifest ¶
func ReadViteManifest(manifest_path string) (ViteManifest, error)
func (ViteManifest) FindAllDeps ¶
func (m ViteManifest) FindAllDeps(import_path string) DepsResult
FindAllDeps recursively finds all of a module's dependencies according to the provided Vite manifest. The import_path arg should be a key in the manifest map. Final result set includes the root module and all of its direct and indirect dependencies.
type ViteManifestChunk ¶
type ViteManifestChunk struct {
Src string `json:"src"`
File string `json:"file"`
CSS []string `json:"css"`
Assets []string `json:"assets"`
IsEntry bool `json:"isEntry"`
Name string `json:"name"`
IsDynamicEntry bool `json:"isDynamicEntry"`
Imports []string `json:"imports"`
DynamicImports []string `json:"dynamicImports"`
}
Click to show internal directories.
Click to hide internal directories.