Skip to content

Commit

Permalink
WebResourceRequested section, not virthost
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehoffms committed Feb 21, 2025
1 parent 4839fe1 commit 21bedc2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ This can take some time. Make sure to limit calls to `AddWebResourceRequestedFil
Source maps are needed to debug the source code of compiled content like transpiled JavaScript (e.g. TypeScript, minified JavaScript) or CSS (e.g. SASS, SCSS). WebView2 does not load source maps referenced by content which was loaded using `WebResourceRequested` event. Consider the following example. You load JavaScript file `main.js` in your `WebResourceRequested` event handler by setting `WebResourceRequestedArgs.Response`. If `main.js` references `main.js.map` as its source map, then `main.js.map` will neither be loaded automatically nor your `WebResourceRequested` event handler will be called again to load it.
To use source maps along with virtual host name mapping, choose one of the following approaches:
To use source maps along with `WebResourceRequested`, choose one of the following approaches:
- Generate inline source maps during compilation of your content. Inline source maps are embedded to the corresponding compiled file.
- Inline separate source maps to the content at runtime in your `WebResourceRequested` event handler. Use this approach only if your content build system does not support inlining source maps.
Expand Down

0 comments on commit 21bedc2

Please sign in to comment.