Skip to content

better extension lookup #18

Description

@jonathanong

should go through all the fields in the order defined and look for:

  • exact match file.path === path
  • extensionless match file.path.replace(/\.\w+$/, '') === path
  • folder-index match file.path.replace(/\/index\.\w+$/, '') === path

making it extension-agnostic unlike node's ['', '.js', '.json', '/index.js'] lookup, which this builder currently does

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions