Skip to content

Deep references no longer working #76

@matthewp

Description

@matthewp

#62 added the ability to reference modules deeply with "browser". It seems that functionality is no longer working. For example deep/ref will work but very/deep/ref will not.

I think the reason is this regular expression: https://github.com/substack/node-resolve/blob/master/lib/async.js#L109

I assume this is intended to chop off the back but instead is chopping off the front. /Users/matthew/foo becomes matthew/foo. I'll submit a new test and fix the regex.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions