Rush StackShopBlogEvents
Skip to main content

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

IImportResolveOptions.getRealPath property

A function used to resolve the realpath of a provided file path.

Signature:

getRealPath?: (filePath: string) => string;

Remarks

This is used to resolve symlinks and other non-standard file paths. By default, this uses the FileSystem.getRealPath() function. However, it can be overridden to use a custom implementation which may be faster, more accurate, or provide support for additional non-standard file paths.