Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

better extension lookup #18

Copy link
Copy link
@jonathanong

Description

@jonathanong
Issue body actions

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.