resolveModule
resolveModule(
id,resolvePaths?):string|null
Defined in: packages/node/src/module/resolve-module.ts:14
Resolve a module id to its full path.
If defined, the resolve paths will be used instead of the default node.js ones, except for the GLOBAL_FOLDERS like $HOME/.node_modules, which are always included.
Parameters
Section titled “Parameters”string
Module identifier
resolvePaths?
Section titled “resolvePaths?”string[]
Optional paths to use to resolve the module
Returns
Section titled “Returns”string | null
The resolved module path, or null if it cannot be found.