RoadmapShopEvents
Skip to main content

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

IImportResolveModuleOptions interface

Options for Import.resolveModule()

Signature:

export interface IImportResolveModuleOptions extends IImportResolveOptions 

Extends: IImportResolveOptions

Properties

PropertyModifiersTypeDescription
allowSelfReference?boolean

(Optional) If true, then resolvePath is allowed to refer to the package.json of the active project.

(Inherited from IImportResolveOptions)

baseFolderPathstring

The path from which IImportResolveModuleOptions.modulePath or IImportResolvePackageOptions.packageName should be resolved.

(Inherited from IImportResolveOptions)

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.

(Inherited from IImportResolveOptions)

modulePathstringThe module identifier to resolve. For example "@rushstack/node-core-library" or "@rushstack/node-core-library/lib/index.js"