Skip to content

Commit 68d445e

Browse files
Stanislavvengrov
authored andcommitted
Workaround for RN >= 0.49 metro-bundler check for single string literal argument to require() (BKNDLSS-15936) (#105)
1 parent 687acdd commit 68d445e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backendless.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@
601601
}
602602

603603
var buffer;
604-
var httpx = require(https ? 'https' : 'http');
604+
var httpx = https ? require('https') : require('http');
605605
var req = httpx.request(options, function(res) {
606606
res.setEncoding('utf8');
607607
res.on('data', function(chunk) {

0 commit comments

Comments
 (0)