Check if resolver has any modules
Get the number of modules
Add a module to the resolver
Optional
metadata: Record<string, any>Add multiple modules at once
Clear any caches (optional)
Check if a module exists
The module path to check
Optional
fromPath: stringThe path of the importing module (for relative resolution)
Promise resolving to true if module exists
Export all modules (useful for serialization)
Get module metadata (optional)
The module path
Promise resolving to module metadata
List available modules (for autocomplete/suggestions)
Optional
prefix: stringOptional prefix to filter modules
Promise resolving to array of available module paths
Remove a module
Resolve a module path to its source code
The module path to resolve (e.g., "./utils", "@wang/core", "https://...")
Optional
fromPath: stringThe path of the importing module (for relative resolution)
Promise resolving to module code and resolved path
In-memory module resolver for testing and temporary modules