Is it possible to source the moduleId in a route to something external from the project? In my case, from node_modules. These are webpack 4.x projects that I’m working with. My goal is that I want to centralize the use of common routes across the applications so that they don’t have to be maintained separately. Currently we have 4 individually running applications under one domain, and any of those 4 could redirect to a “404” page using config.mapUnknownRoutes. We have a private NPM repository that serves common code to these four applications and I’m trying to figure out how I can share a view/view-model between applications also.
I’m aware of custom elements and we’ve used this solution in the past, but I don’t think that’s 100% appropriate use of that feature in this case.