1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-09-16 09:41:38 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

try require diff separately

This commit is contained in:
sunnylqm
2021-04-11 18:11:08 +08:00
parent c30454976c
commit 9e721e1858

View File

@@ -16,6 +16,9 @@ const os = require('os');
var bsdiff, hdiff, diff;
try {
bsdiff = require('node-bsdiff').diff;
} catch (e) {}
try {
hdiff = require('node-hdiffpatch').diff;
} catch (e) {}