close

resolve

Options for module resolution.

resolve.aliasStrategy resolve.aliasStrategyresolve.aliasStrategy

Control the priority between the resolve.alias option and the paths option in tsconfig.json.

resolve.alias resolve.aliasresolve.alias

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.

resolve.dedupe resolve.deduperesolve.dedupe

Force Rstest to resolve the specified packages from project root, which is useful for deduplicating packages and reducing the bundle size.

resolve.extensions resolve.extensionsresolve.extensions

Automatically resolve file extensions when importing modules. This means you can import files without explicitly writing their extensions.

resolve.conditionNames resolve.conditionNamesresolve.conditionNames

Control the condition names used when resolving the exports field of a package.

resolve.mainFields resolve.mainFieldsresolve.mainFields

Control the priority order of package entry fields such as main, module, and browser.