Skip to content

Commit

Permalink
fix enable-source-maps
Browse files Browse the repository at this point in the history
  • Loading branch information
drapanjanas committed Feb 4, 2018
1 parent dea5a88 commit 0e88bb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion re-natal.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ updateGitIgnore = (platforms) ->

findPackagerFileToPatch = () ->
files = [
"node_modules/metro/src/Server/index.js",
"node_modules/metro-bundler/src/Server/index.js",
"node_modules/metro-bundler/build/Server/index.js",
"node_modules/react-native/packager/src/Server/index.js"]
Expand All @@ -394,7 +395,7 @@ patchReactNativePackager = () ->
fileToPatch = findPackagerFileToPatch()
log "Patching file #{fileToPatch} to serve *.map files."
edit fileToPatch,
[[/match.*\.map\$\/\)/m, "match(/index\\..*\\.map$/)"]]
[[/match\(\/\\.map\$\/\)/m, "match(/index\\..*\\.map$/)"]]
log "If the React Native packager is running, please restart it."

shimCljsNamespace = (ns) ->
Expand Down

0 comments on commit 0e88bb5

Please sign in to comment.