Skip to content

Get only an array of paths #8

@jlgrall

Description

@jlgrall

Add a requireDir.resolve() which would return a map of the paths instead of a map of the required paths.

It would help plugins like browserify to follow your requires, without loosing time loading unnecessary modules.

I chose the name .resolve() to stay consistent with require.resolve().

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions