Resolve a dependency.
The identifier of the dependency.
The resolved dependency.
A DependencyResolutionError if the dependency is not found.
Resolve a dependency
The identifier of the dependency.
The dependency is not necessary.
The resolved dependency or undefined if the dependency is not found.
Resolve a dependency.
Param: identifier
The identifier of the dependency.
Param: necessary
If true, throws an error if the dependency is not found.
Returns
The resolved dependency or undefined if the dependency is not necessary and not found, or throws an error if the dependency is necessary and not found.
Throws
A DependencyResolutionError if the dependency is not found and necessary.