Skip to content

Let WebResourceRequested & VirtualHostNameToFolderMapping handle sourcemap requests from Dev Tools #961

@wravery

Description

@wravery

Is your feature request related to a problem? Please describe.

We use WebResourceRequested to return JS bundles as streams using a custom URL. Anytime we load the script in the dev tools debugger, it says there's a sourcemap but it can't be loaded. I attempted to add a handler for the .js.map URL, but it's never called. In the console output I see a warning that it tried to request the sourcemap over the network and failed.

Describe the solution you'd like and alternatives you've considered

I would like the dev tools sourcemap request to be hooked by WebResourceRequested. It would make debugging much easier.

The best alternative I know of would be to embed the sourcemap inline. But then I need separate debug and release versions of the JS bundle.

AB#31914830

Metadata

Metadata

Assignees

Labels

feature requestfeature requesttrackedWe are tracking this work internally.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions