Require figwheel-bridge.js with relative path

Signed-off-by: Max Risuhin <risuhin.max@gmail.com>
This commit is contained in:
Max Risuhin 2018-09-21 00:25:34 +03:00
parent 07500385d8
commit 90fe7b903a
No known key found for this signature in database
GPG Key ID: BF733F5ACA0B4448
1 changed files with 1 additions and 1 deletions

View File

@ -772,7 +772,7 @@ generateDevScripts = () ->
for platform in platforms for platform in platforms
moduleMap = generateRequireModulesCode(platformModulesAndImages(config, platform)) moduleMap = generateRequireModulesCode(platformModulesAndImages(config, platform))
fs.writeFileSync "index.#{platform}.js", "#{moduleMap}require('figwheel-bridge').withModules(modules).start('#{projName}','#{platform}','#{devHost[platform]}');" fs.writeFileSync "index.#{platform}.js", "#{moduleMap}require('./figwheel-bridge').withModules(modules).start('#{projName}','#{platform}','#{devHost[platform]}');"
log "index.#{platform}.js was regenerated" log "index.#{platform}.js was regenerated"
updateIosRCTWebSocketExecutor(devHost.ios) updateIosRCTWebSocketExecutor(devHost.ios)