()
| 22 | let _customSourceTransformer, _serverURL, _bundleSourcePath; |
| 23 | |
| 24 | function getDevServerURL(): ?string { |
| 25 | if (_serverURL === undefined) { |
| 26 | var scriptURL = NativeModules.SourceCode.scriptURL; |
| 27 | var match = scriptURL && scriptURL.match(/^https?:\/\/.*?\//); |
| 28 | if (match) { |
| 29 | // Bundle was loaded from network |
| 30 | _serverURL = match[0]; |
| 31 | } else { |
| 32 | // Bundle was loaded from file |
| 33 | _serverURL = null; |
| 34 | } |
| 35 | } |
| 36 | return _serverURL; |
| 37 | } |
| 38 | |
| 39 | function getBundleSourcePath(): ?string { |
| 40 | if (_bundleSourcePath === undefined) { |
no test coverage detected
searching dependent graphs…