mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
native modules fix
This commit is contained in:
parent
c0779f1260
commit
e07e35c104
@ -1,5 +1,5 @@
|
||||
const argIndex = process.argv.indexOf('--native-modules');
|
||||
const redirectFile = argIndex > 0 ? process.argv[argIndex + 1] : null;
|
||||
const redirectFile = global['NATIVE_MODULES'] || (argIndex > 0 ? process.argv[argIndex + 1] : null);
|
||||
|
||||
function requireDynamic(file) {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user