mirror of
https://github.com/dbgate/dbgate
synced 2024-11-08 04:35:58 +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 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) {
|
function requireDynamic(file) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user