Skip to content

module: unflag resolve self

Unflags the --experimental-resolve-self option, which allows packages to load their own "exports" definitions through an import to their own package name.

For CommonJS this approach is backwards-compatible because the own name resolution is only attempted after all other resolutions fail.

Backwards compatibility is now ensured by only supporting own-name resolution when "exports" in the package.json is set. When it is, this resolution applies before any node_modules lookup checks.

Opening now to discuss along with overall resolver stability concerns.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading