Fixes js bundle failed (#45155)

Summary:
When I enabled `FORCE_BUNDLING`, it build errors like below. cc blakef
![image](https://github.com/facebook/react-native/assets/5061845/d23f6bad-ed60-4f1f-8111-2361c93e93a4)

## Changelog:

[INTERNAL] [FIXED] - Fixes js bundle failed

Pull Request resolved: https://github.com/facebook/react-native/pull/45155

Test Plan: Enable FORCE_BUNDLING and build success.

Reviewed By: cipolleschi

Differential Revision: D59006962

Pulled By: blakef

fbshipit-source-id: 1142d1ddbae7346b67712fac0237950847211992
This commit is contained in:
zhongwuzw
2024-06-26 11:57:50 +01:00
committed by Nicola Corti
parent 865aaeda58
commit 4783de7a40
+2 -2
View File
@@ -31,9 +31,9 @@ program
'npx react-native config',
)
.option('--load-config <string>', '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*$/, ''),