Add ordered aggregate IModuleLoader
Oceanswave opened this issue · 0 comments
Oceanswave commented
Similar to the AggregateModuleLoader except that
- No Prefixes
- Registered Module Loaders denote a priority, such that if a higher-priority module loader fails to find a module with a given specifier, it attempts to load from the lower-priority loader
e.g.
loader0 - webresource moduleloader
loader1 - github moduleloader
loader2 - assembly moduleloader
import foo from 'super-man'
- checks the webresource for a 'super-man.js' resource module
- checks the github module loader for a 'repository/super-man.js' resource module
- checks the assembly module loader for a 'super-man' module