Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/node-core-library > IImportResolvePackageOptions > useNodeJSResolver

IImportResolvePackageOptions.useNodeJSResolver property

If true, then the module path will be resolved using Node.js's built-in resolution algorithm.

Signature:

useNodeJSResolver?: boolean;

Remarks

This allows reusing Node's built-in resolver cache. This implies allowSelfReference: true. The passed getRealPath will only be used on baseFolderPath.