Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Source map per URL host #9

Open
kobiburnley opened this issue Aug 20, 2019 · 1 comment
Open

Source map per URL host #9

kobiburnley opened this issue Aug 20, 2019 · 1 comment

Comments

@kobiburnley
Copy link
Contributor

Stack-traces may contain files from different vendors, so their corresponding sourcemaps are not in the same file system location/http server. Would we want to implement provider-per-URL-host mechanism?

@mckomo

@mckomo
Copy link
Contributor

mckomo commented Aug 20, 2019

Yes, of course. I was thinking that we could implement SourceMapProvider in the "router" style that could compose core source map providers. It could look like this:

const sourceMapProvider = routedProvider({
  "cdn.com/*": httpProvider,
  "*": fsProvider("/var/sources")
})

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants