Fix re-loading of source maps with "-fast-refresh" flag enabled
Summary: Fixed loading of source maps when dev server is running with --fast-refresh flag set. Looks like it was broken after last metro upgrade because it changed the way how module paths are passed to dev server. We also had a hack to workaround bug when requested module paths were malformed, but it looks this hack is not needed now, so I deleted it as well. Reviewed By: passy Differential Revision: D28120080 fbshipit-source-id: 03a39c9840da8f4c8c72be6189c0b71c62fac7f0
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1447ae0c18
commit
763eda8f6b
@@ -12,7 +12,7 @@ import {default as ReactRefreshRuntime} from 'react-refresh/runtime';
|
||||
|
||||
HmrClient.setup(
|
||||
'web',
|
||||
'/src/init-fast-refresh.bundle',
|
||||
'/app/src/init-fast-refresh.bundle',
|
||||
'localhost',
|
||||
'3000',
|
||||
true,
|
||||
|
||||
Reference in New Issue
Block a user