---
title: "enhanced-resolve 5.25.0 Breaking Changes on npm | Since.dev"
description: "What each enhanced-resolve release removed, renamed or changed: 38 breaking changes in 10 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/enhanced-resolve
last_updated: 2026-12-04
---

# enhanced-resolve breaking changes

enhanced-resolve 5.25.0 (September 12, 2026) is its newest release with breaking changes, 2 of them. The first: Signature changed ResolveOptions.mainFields. Every breaking API change we have recorded in enhanced-resolve on npm: 38 breaking changes in 10 versions. Below, its 10 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `5.27.2`, released December 4, 2026. [Source repository](https://github.com/webpack/enhanced-resolve)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [5.19.0](#v-5-19-0) to [5.25.0](#v-5-25-0): 32 breaking changes in 9 versions.

## enhanced-resolve 5.25.0 breaking changes

enhanced-resolve 5.25.0, released September 12, 2026: 2 breaking changes.

- **Signature changed** `ResolveOptions.mainFields`  

Was mainFields?: (| string | string\[\] | {name: string | string\[\]; forceRelative: boolean})\[\]; now mainFields?: (string | string\[\] | {name: string | string\[\]; forceRelative: boolean})\[\]. [npmjs.com](https://www.npmjs.com/package/enhanced-resolve/v/5.25.0)
- **Signature changed** `ResolveOptionsOptionalFS.mainFields`  

Was mainFields?: (| string | string\[\] | {name: string | string\[\]; forceRelative: boolean})\[\]; now mainFields?: (string | string\[\] | {name: string | string\[\]; forceRelative: boolean})\[\]. [npmjs.com](https://www.npmjs.com/package/enhanced-resolve/v/5.25.0)

## enhanced-resolve 5.24.5 breaking changes

enhanced-resolve 5.24.5, released July 30, 2026: 1 breaking change.

- **Behavior changed**  

When automatic tsconfig discovery loads a broken config it now soft-fails instead of erroring, and relative extends paths stay relative. Code relying on the previous error or path resolution may behave differently. [github.com](https://github.com/webpack/enhanced-resolve/releases/tag/v5.24.5)

## enhanced-resolve 5.24.4 breaking changes

enhanced-resolve 5.24.4, released July 28, 2026: 1 breaking change.

- **Behavior changed** `restrictions`  

Restrictions are normalized before comparison, and Windows paths treat / and \\ as interchangeable and compare case-insensitively, matching path.win32. Check restriction paths that relied on the old exact comparison. [github.com](https://github.com/webpack/enhanced-resolve/releases/tag/v5.24.4)

## enhanced-resolve 5.24.0 breaking changes

enhanced-resolve 5.24.0, released June 11, 2026: 7 breaking changes.

- **Signature changed** `default`  

Was function exports(context: Context, path: string, request: string, callback: (err: null | ErrorWithDetail, res?: string | false, req?: ResolveRequest) => void): void function exports(context: Context, path: string, request: string... [npmjs.com](https://www.npmjs.com/package/enhanced-resolve/v/5.24.0)
- **Signature changed** `ResolveFunction.__call`  

Was (context: Context, path: string, request: string, resolveContext?: ResolveContext): string | false (path: string, request: string, resolveContext?: ResolveContext): string | false; now (context: Context, parent: string | URL_url... [npmjs.com](https://www.npmjs.com/package/enhanced-resolve/v/5.24.0)
- **Signature changed** `ResolveFunctionAsync.__call`  

Was (context: Context, path: string, request: string, callback: (err: null | ErrorWithDetail, res?: string | false, req?: ResolveRequest) => void): void (context: Context, path: string, request: string, resolveContext: ResolveContext... [npmjs.com](https://www.npmjs.com/package/enhanced-resolve/v/5.24.0)
- **Signature changed** `ResolveFunctionPromise.__call`  

Was (context: Context, path: string, request: string, resolveContext?: ResolveContext): Promise\<string | false> (path: string, request: string, resolveContext?: ResolveContext): Promise\<string | false>; now (context: Context, parent... [npmjs.com](https://www.npmjs.com/package/enhanced-resolve/v/5.24.0)
- **Signature changed** `Resolver.resolve`  

Was resolve(context: Context, path: string, request: string, callback: (err: null | ErrorWithDetail, res?: string | false, req?: ResolveRequest) => void): void resolve(context: Context, path: string, request: string, resolveContext... [npmjs.com](https://www.npmjs.com/package/enhanced-resolve/v/5.24.0)
- **Signature changed** `Resolver.resolvePromise`  

Was resolvePromise(context: Context, path: string, request: string, resolveContext?: ResolveContext): Promise\<string | false> resolvePromise(path: string, request: string, resolveContext?: ResolveContext): Promise\<string | false>; now... [npmjs.com](https://www.npmjs.com/package/enhanced-resolve/v/5.24.0)
- **Signature changed** `Resolver.resolveSync`  

Was resolveSync(context: Context, path: string, request: string, resolveContext?: ResolveContext): string | false resolveSync(path: string, request: string, resolveContext?: ResolveContext): string | false; now resolveSync(context... [npmjs.com](https://www.npmjs.com/package/enhanced-resolve/v/5.24.0)

## enhanced-resolve 5.23.0 breaking changes

enhanced-resolve 5.23.0, released June 5, 2026: 12 breaking changes.

- **Signature changed** `ResolveOptions.alias`  

Was alias?: AliasOptions | AliasOption\[\]; now alias?: UserAliasOptions | UserAliasOptionEntry\[\]. [npmjs.com](https://www.npmjs.com/package/enhanced-resolve/v/5.23.0)
- **Signature changed** `ResolveOptions.fallback`  

Was fallback?: AliasOptions | AliasOption\[\]; now fallback?: UserAliasOptions | UserAliasOptionEntry\[\]. [npmjs.com](https://www.npmjs.com/package/enhanced-resolve/v/5.23.0)
- **Signature changed** `ResolveOptions.modules`  

Was modules?: string | string\[\]; now modules?: string | URL_url | (string | URL_url)\[\]. [npmjs.com](https://www.npmjs.com/package/enhanced-resolve/v/5.23.0)
- **Signature changed** `ResolveOptions.restrictions`  

Was restrictions?: (string | RegExp)\[\]; now restrictions?: (string | RegExp | URL_url)\[\]. [npmjs.com](https://www.npmjs.com/package/enhanced-resolve/v/5.23.0)
- **Signature changed** `ResolveOptions.roots`  

Was roots?: string\[\]; now roots?: (string | URL_url)\[\]. [npmjs.com](https://www.npmjs.com/package/enhanced-resolve/v/5.23.0)
- **Signature changed** `ResolveOptions.tsconfig`  

Was tsconfig?: string | boolean | TsconfigOptions; now tsconfig?: string | boolean | URL_url | UserTsconfigOptions. [npmjs.com](https://www.npmjs.com/package/enhanced-resolve/v/5.23.0)
- **Signature changed** `ResolveOptionsOptionalFS.alias`  

Was alias?: AliasOptions | AliasOption\[\]; now alias?: UserAliasOptions | UserAliasOptionEntry\[\]. [npmjs.com](https://www.npmjs.com/package/enhanced-resolve/v/5.23.0)
- **Signature changed** `ResolveOptionsOptionalFS.fallback`  

Was fallback?: AliasOptions | AliasOption\[\]; now fallback?: UserAliasOptions | UserAliasOptionEntry\[\]. [npmjs.com](https://www.npmjs.com/package/enhanced-resolve/v/5.23.0)
- **Signature changed** `ResolveOptionsOptionalFS.modules`  

Was modules?: string | string\[\]; now modules?: string | URL_url | (string | URL_url)\[\]. [npmjs.com](https://www.npmjs.com/package/enhanced-resolve/v/5.23.0)
- **Signature changed** `ResolveOptionsOptionalFS.restrictions`  

Was restrictions?: (string | RegExp)\[\]; now restrictions?: (string | RegExp | URL_url)\[\]. [npmjs.com](https://www.npmjs.com/package/enhanced-resolve/v/5.23.0)

And 2 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## enhanced-resolve 5.22.0 breaking changes

enhanced-resolve 5.22.0, released May 22, 2026: 1 breaking change.

- **Signature changed** `CachedInputFileSystem.purge`  

Was purge(what?: | string | number | Buffer | URL_url | (string | number | Buffer | URL_url)\[\] | Set\<string | number | Buffer | URL_url>): void; now purge(what?: | string | number | Buffer | URL_url | (string | number | Buffer | URL_url)\[\]... [npmjs.com](https://www.npmjs.com/package/enhanced-resolve/v/5.22.0)

## Older versions

4 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### enhanced-resolve 5.21.4 breaking changes

enhanced-resolve 5.21.4, released May 18, 2026: 1 breaking change.

- **Behavior changed** `tsconfig`  

When tsconfig is true, the resolver walks up parent directories to find tsconfig.json, like TypeScript's findConfigFile. Code that relied on the previous lookup may now pick up a different config file. [github.com](https://github.com/webpack/enhanced-resolve/releases/tag/v5.21.4)

### enhanced-resolve 5.21.3 breaking changes

enhanced-resolve 5.21.3, released May 11, 2026: 1 breaking change.

- **Behavior changed** `TsconfigPathsPlugin`  

When a paths pattern matches but the mapped path does not exist, resolution now continues to normal module resolution, so scoped npm packages like @sentry/react resolve via node_modules again. Code relying on the previous blocking behavior... [github.com](https://github.com/webpack/enhanced-resolve/releases/tag/v5.21.3)

### enhanced-resolve 5.21.0 breaking changes

enhanced-resolve 5.21.0, released April 23, 2026: 6 breaking changes.

- **Behavior changed**  

If a package.json exports target file is not found, resolution now fails instead of falling back to a parent node_modules directory. Code that relied on that fallback must fix the exports target or the install. [github.com](https://github.com/webpack/enhanced-resolve/releases/tag/v5.21.0)
- **Behavior changed**  

A package.json imports entry whose target is another # specifier is no longer resolved again. Such chains now fail, as in Node.js, so change those entries to point at a file directly. [github.com](https://github.com/webpack/enhanced-resolve/releases/tag/v5.21.0)

And 4 more in this version.

### enhanced-resolve 5.19.0 breaking changes

enhanced-resolve 5.19.0, released February 3, 2026: 6 breaking changes.

- **Signature changed** `default`  

Was function exports(context: object, path: string, request: string, callback: (err: null | ErrorWithDetail, res?: string | false, req?: ResolveRequest) => void): void function exports(context: object, path: string, request: string... [npmjs.com](https://www.npmjs.com/package/enhanced-resolve/v/5.19.0)
- **Signature changed** `ResolveFunction.__call`  

Was (context: object, path: string, request: string): string | false; now (context: Context, path: string, request: string): string | false. [npmjs.com](https://www.npmjs.com/package/enhanced-resolve/v/5.19.0)

And 4 more in this version.

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
