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:
Max Risuhin 2018-09-21 00:00:47 +03:00
parent 860f8b58fc
commit 07500385d8
No known key found for this signature in database
GPG Key ID: BF733F5ACA0B4448
1 changed files with 1 additions and 1 deletions

View File

@ -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$/)"]]