diff --git a/packages/react-native/scripts/bundle.js b/packages/react-native/scripts/bundle.js index a6dd5ec4129921..53acb055b2c0d6 100644 --- a/packages/react-native/scripts/bundle.js +++ b/packages/react-native/scripts/bundle.js @@ -31,9 +31,9 @@ program 'npx react-native config', ) .option('--load-config ', 'JSON project config') - .action(async function handleAction(_, options) { + .action(async function handleAction() { let config = null; - + let options = program.opts(); if (options.loadConfig != null) { config = JSON.parse( options.loadConfig.replace(/^\W*'/, '').replace(/'\W*$/, ''),