@velcro/resolver-host-compound
v0.27.0
Published
Implements a @velcro/resolver host that delegates to multiple child hosts based on url prefix
Downloads
35
Maintainers
Readme
@velcro/resolver-host-compound
A class that implements the ResolverHost
interface over a set of child ResolverHost
s that each map to a distinct prefix.
Usage
const host = new Velcro.ResolverHostCompound({
'https://unpkg.com/': new Velcro.ResolverHostUnpkg(),
'file:///': new Velcro.ResolverHostFs({ fs }),
});