Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Multiple paths matching #189

Closed
Closed
@matthewp

Description

@matthewp

What is the expected behavior when multiple paths match? Say for example you have the module foo/bar and you have the following paths:

System.paths["foo/bar"] = "other/foo/bar.js";
System.paths["foo/*"] = "*.js";

I would expect that the first would match. But that's not necessarily the case because of the for/in loop. https://github.com/ModuleLoader/es6-module-loader/blob/master/lib/system.js#L231

Should there be some type of specificity rule?

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