native modules fix

This commit is contained in:
Jan Prochazka 2021-12-30 09:08:59 +01:00
parent c0779f1260
commit e07e35c104

View File

@ -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 {