Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/node-core-library > IImportResolveOptions

IImportResolveOptions interface

Common options shared by IImportResolveModuleOptions and IImportResolvePackageOptions


export interface IImportResolveOptions 


allowSelfReference?boolean(Optional) If true, then resolvePath is allowed to refer to the package.json of the active project.
baseFolderPathstringThe path from which IImportResolveModuleOptions.modulePath or IImportResolvePackageOptions.packageName should be resolved.
getRealPath?(filePath: string) => string(Optional) A function used to resolve the realpath of a provided file path.
includeSystemModules?boolean(Optional) If true, if the package name matches a Node.js system module, then the return value will be the package name without any path.