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
Description
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
Labels
No labels