Releases: webpack/enhanced-resolve
Release list
v5.24.5
Patch Changes
- Soft-fail when auto tsconfig discovery loads a broken config, and keep relative
extendspaths relative. (by @xiaoxiaojx in #645)
v5.24.4
Patch Changes
-
Keep the original request resolvable when
extensionAliaslists its own extension. (by @alexander-akait in #641) -
Fix string
restrictionsboundary checks: a restriction ending with a separator no longer rejects everything inside it, restrictions are normalized before they are compared, and a Windows path now matches the waypath.win32does, treating/and\as interchangeable and comparing case-insensitively, while\stays a filename character in a posix path. The same comparison backstsconfigpath matching. (by @alexander-akait in #643) -
Treat a UNC path (
\\server\share\…) as a Windows path, so it normalizes, joins and walks up withpath.win32semantics instead of being taken for a bare module request. (by @alexander-akait in #644)
v5.24.3
Patch Changes
- Resolve tsconfig
extendspackage specifiers from ancestor node_modules directories (workspace hoisting). (by @alexander-akait in #631)
v5.24.2
Patch Changes
- Batch cached filesystem callbacks from one synchronous burst into a single tick. (by @alexander-akait in #623)
v5.24.1
Patch Changes
- Reduce hot-path allocations in the resolve pipeline. (by @xiaoxiaojx in #615)
v5.24.0
Minor Changes
- Allow the
contextpath andrequestarguments ofresolve(andresolveSync/resolvePromise) to acceptfile:URLinstances, converting them to filesystem paths. Plain strings stay literal paths, matching Node'sfs. (by @alexander-akait in #607)
Patch Changes
-
Make the resolver runtime-agnostic so it works in browsers, Deno and Bun as well as Node. File contents are decoded without assuming a Node
Buffer, and browser shims are provided for thepath,urlandgraceful-fsbuiltins (Node, Deno and Bun keep using the native ones) so the package bundles for the browser — supply your ownfileSystemthere. (by @alexander-akait in #606) -
Rename the positional
resolve/resolveSync/resolvePromiseparameters toparent/specifier(frompath/request) for ESM-aligned naming and document them in the README. Purely cosmetic — arguments are positional, so there is no behavior or API change. (by @alexander-akait in #611)
v5.23.0
Minor Changes
- Allow the path-like resolve options
roots,modules,alias/fallbacktargets,restrictions, andtsconfig(the config file,configFile,baseUrl, andreferences) to accept fileURLinstances (such asnew URL("./dir/", import.meta.url)), converting them to filesystem paths. Plain strings are still treated as literal paths, matching Node'sfs. (by @alexander-akait in #604)
v5.22.2
Patch Changes
- Fall back to the next
modulesentry when a packageexportstarget is filtered out byrestrictions, instead of throwing. (by @alexander-akait in #600)
v5.22.1
Patch Changes
- Fix
restrictionsbypass via an in-root symlink pointing outside the root. (by @alexander-akait in #595)
v5.22.0
Minor Changes
CachedInputFileSystem#purgeaccepts a second{ exact?: boolean }argument;exact: trueremoves only entries whose key matcheswhatexactly instead of any entry whose key starts withwhat. (by @alexander-akait in #591)