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

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

Description

@ryan-roemer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions