Type Definitions
-
givenDependency
-
A number of functions accept a dependency as an argument.
If the dependency is an object, at least one of the properties must be given.
If the dependency is a string, it is converted to an object with the
locationproperty set to the value of the string.Type:
- Object | string
- Source:
- require.js, line 625
Properties:
Name Type Argument Description namestring <optional>
The name of the dependency.
If only the name is given then the location is resolved relative to the
packagesDirectoryof the package config (generally "node_modules").locationstring <optional>
The location of the dependency.
If the location is relative it is resolved relative to the
locationof the package config.