Home > @rushstack/node-core-library > IImportResolveOptions > includeSystemModules
IImportResolveOptions.includeSystemModules property
If true, if the package name matches a Node.js system module, then the return value will be the package name without any path.
Signature:
includeSystemModules?: boolean;
Remarks
This will take precedence over an installed NPM package of the same name.
Example:
// Returns the string "fs" indicating the Node.js system module
Import.resolveModulePath({
resolvePath: "fs",
basePath: process.cwd()
})