Hot reloading doesn't update Chrome sourcemaps
See original GitHub issueWe have not merged hot reloading support yet but I noticed a very unfortunate issue: Chrome doesn’t update sourcemaps.
See how the Hello
in browser Sources pane doesn’t change.
Note that if we change Webpack devtool
setting from cheap-module-source-map
to eval
it will update on hot reloads:
It used to be broken too but at some point Chrome fixed it. I remember chatting with @paulirish about it in the past.
However we can’t switch to eval
mode because we need the source mapping.
We should reach out to somebody at Chrome and figure out if this is fixable. We can live with the broken behavior for a while but if it’s not possible to fix later, then hot reloading experience would be confusing.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:27 (10 by maintainers)
Top Results From Across the Web
How to get Chrome to reload source maps? - Stack Overflow
Open the source map in a browser tab and do a hard reload (depending on OS, try CTRL + F5 ). This refreshes...
Read more >Issue 438251: DevTools: Source maps and ... - Monorail
The newly created source map in dev tools for this file doesn't get reloaded. It doesn't even get requested. This is the discussion...
Read more >Console in Chrome Devtools doesn't clear on refresh after ...
After the version 68 update a couple weeks ago, my console in Devtools no longer clears after refreshing the page. Here are the...
Read more >Pressing Reload in a webpack + hot reloader + React ...
We used to have a bug where the new debugger didn't forcefully turn off sourcemaps on the server (bug 1303177). What this means...
Read more >Hot Reload settings | JetBrains Rider Documentation
This option enables Hot Reload when you run code without debugging Ctrl+F5 . If it is disabled, you can make any edits, but...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The fix for
crbug.com/438251
has landed and will be available on tomorrow’s Canary.update chrome Version 66.0.3359.117(64-bit) , the bug has fixed. 🙂