Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/node-core-library > IImportResolveAsyncOptions > getRealPathAsync

IImportResolveAsyncOptions.getRealPathAsync property

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

Signature:

getRealPathAsync?: (filePath: string) => Promise<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.