From e07e35c104f761059c5c30ce16e05dc8504feef4 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Thu, 30 Dec 2021 09:08:59 +0100 Subject: [PATCH] native modules fix --- packages/api/src/nativeModules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/src/nativeModules.js b/packages/api/src/nativeModules.js index 02d2ddee..954acbaa 100644 --- a/packages/api/src/nativeModules.js +++ b/packages/api/src/nativeModules.js @@ -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 {