Skip to content

Releases: webpack/enhanced-resolve

v5.3.0

20 Oct 11:52
Compare
Choose a tag to compare

Bugfixes

  • exports and imports field continue resolving extensions, directories and aliases if fullySpecified is not specified
  • load description file after resolving with exports or imports field

v5.2.0

30 Sep 07:42
Compare
Choose a tag to compare

Features

  • add optional lstat to filesystem interface and CachedFileSystem
  • support passing escaped # in requests
  • try to resolve without fragment support to be able to handle # in paths
  • # will be escaped in the resulting path

Bugfixes

  • fix handling of options argument in filesystem methods when using the SyncAsyncFileSystem decorator

v5.1.0

28 Sep 18:21
Compare
Choose a tag to compare

Features

  • add preferRelative option

Bugfixes

  • fix stack overflow crash in cached filesystem

v5.0.0

17 Sep 23:51
Compare
Choose a tag to compare

Features

  • increase minimal node.js version
  • update dependencies
  • remove memory-fs dependency
  • real fs is usable, no join expected from filesystem
  • track dependencies while resolving
  • add support for arrays in alias
  • add support for Yarn PnP
    • PnP tracks dependency to the .pnp.js file
  • add support for alias: { something: false }
  • generate and publish type declaration file for typescript
  • exports field support
    • add exportsFields option
    • add conditionNames option
  • self reference resolving when exports field is present
  • add restrictions option, which allows to restrict the allowed paths to resolve too
  • add fragment support
  • add roots option
  • add fullySpecified option for better node.js esm compat
  • refactor CacheFileSystem
    • allow only sync usage
    • support second options argument for all methods
  • add support for imports field in package.json
  • add new fallback option, which is like alias but is only activated when normal resolving fails

Removals

  • remove concord
  • remove deprecated tapable compat layer
  • remove .context and .loader from node API
  • remove NodeJsInputFileSystem

Bugfixes

  • fixes lowercase file letters
  • fixes "main": "." crash
  • fix purging of readdir
  • module/ now correctly resolves to directory and not to module.js as file
  • fix lisence field in package.json
  • Fix bug when instead of package resolving in modules file with same name was resolved

Contribution

  • refactor join and normalize to use node.js path instead of memory-fs
  • linting update
  • code style update (spread operator, let/const, arrow functions)
  • add a lot of type information
  • Linting type information
  • Linting formating

Performance

  • optimize number of fs accesses
  • serialize all operations to reduce number of fs accesses
  • deduplicate duplicate entries in aliasFields, descriptionFiles, extensions, modules, mainFields and mainFiles

Internals

  • Options are normalized separatly
  • improve handling of scoped packages @scope/name

v5.0.0-beta.12

16 Sep 12:50
Compare
Choose a tag to compare

Bugfixes

  • Revert for: Directories starting with # are no longer treated as fragment

v5.0.0-beta.11

15 Sep 15:43
Compare
Choose a tag to compare
v5.0.0-beta.11 Pre-release
Pre-release

Features

  • add support for imports field in package.json
  • add new fallback option, which is like alias but is only activated when normal resolving fails

Bugfixes

  • Directories starting with # are no longer treated as fragment
  • Fix bug when instead of package resolving in modules file with same name was resolved

v5.0.0-beta.9

17 Jul 06:44
Compare
Choose a tag to compare
v5.0.0-beta.9 Pre-release
Pre-release

Features

  • add fullySpecified option for better node.js esm compat
  • refactor CacheFileSystem
    • allow only sync usage
    • support second options argument for all methods

v5.0.0-beta.10

17 Jul 13:14
Compare
Choose a tag to compare
v5.0.0-beta.10 Pre-release
Pre-release

Bugfixes

  • fix for resolveToContext with fullySpecified

v4.3.0

15 Jul 09:32
Compare
Choose a tag to compare

Features

  • add roots options to allow resolve server-relative URLs

v5.0.0-beta.8

06 Jul 21:01
Compare
Choose a tag to compare
v5.0.0-beta.8 Pre-release
Pre-release

Features

  • add roots option