Options for module resolution.
Control the priority between the resolve.alias
option and the paths
option in tsconfig.json
.
Set the alias for the module path, which is used to simplify the import path or redirect the module reference, similar to the resolve.alias config of Rspack.
For TypeScript projects, you only need to configure compilerOptions.paths in the tsconfig.json
file. Rstest will automatically recognize it, so there is no need to configure the resolve.alias
option separately.
Force Rstest to resolve the specified packages from project root, which is useful for deduplicating packages and reducing the bundle size.
Automatically resolve file extensions when importing modules. This means you can import files without explicitly writing their extensions.