Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Optimization: Exclude package.json files not used in resolution. #13

Open
ryan-roemer opened this issue Mar 4, 2020 · 0 comments
Open
Labels
feature New feature or request

Comments

@ryan-roemer
Copy link
Member

It's a very odd case, but if there's something like:

// index.js
// package.json
{
  main: "bad.js"
}

Then we Node will resolve to index.js and we won't need package.json at all.

Additionally, if package.json resolves to ., ./, index, index.js|mjs, etc. we could just exclude it as without it we get the same resolution rules.

@ryan-roemer ryan-roemer added the feature New feature or request label Mar 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant