Update metro Server.js file path to be patched by enable-source-maps command
Signed-off-by: Max Risuhin <risuhin.max@gmail.com>
This commit is contained in:
parent
860f8b58fc
commit
07500385d8
|
@ -383,7 +383,7 @@ updateGitIgnore = (platforms) ->
|
|||
|
||||
patchReactNativePackager = () ->
|
||||
installDeps()
|
||||
fileToPatch = "node_modules/metro/src/Server/index.js"
|
||||
fileToPatch = "node_modules/metro/src/Server.js"
|
||||
log "Patching file #{fileToPatch} to serve *.map files."
|
||||
edit fileToPatch,
|
||||
[[/match\(\/\\.map\$\/\)/m, "match(/index\\..*\\.map$/)"]]
|
||||
|
|
Loading…
Reference in New Issue