For example, in a situation where an "external" script/package is imported from a different (but known) domain, and it has named dependencies. I do not necessarily know what these dependencies are, but I know that they are all stored under a particular base URL on that domain.
I would like all package references, within the external script/package to be normalized within this base URL, even if that package is already defined by the top-most scope (where systemjs itself defined, in the System.config()).
I can use packages & map to get there partially, but it requires that I map each dependency individually (and I do not know all of the dependencies in this usage context). Map does not seem to support wildcards or "/". For example:
packages: {
'https://sub.domain': {
map: {
'some-dep': 'https://sub.domain/deps/some-dep',
'some-vendor': 'https://sub.domain/deps/some-vendor', //does work for package 'some-vendor/package'
'*': 'https://sub.domain/deps', //doesn't work
'/': 'https://sub.domain/deps' //doesn't work either
}
}
}
--
You received this message because you are subscribed to the Google Groups "SystemJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to systemjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This also is not for use during a build process, this is running in browser. I can't use the local: approach since there are multiple domains and the local packages have named deps as well.
Thanks. Is there a way to specify a contextual map that applies to all packages? It's curious that the some-vendor example works, because it is almost to the point of what I need. It's sort of a "all packages with this prefix" map.
This also is not for use during a build process, this is running in browser. I can't use the local: approach since there are multiple domains and the local packages have named deps as well.