Skip to content

better extension lookup #18

@jonathanong

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    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