Skip to content

Commit 4783de7

Browse files
zhongwuzwcortinico
authored andcommitted
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: #45155 Test Plan: Enable FORCE_BUNDLING and build success. Reviewed By: cipolleschi Differential Revision: D59006962 Pulled By: blakef fbshipit-source-id: 1142d1ddbae7346b67712fac0237950847211992
1 parent 865aaed commit 4783de7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/react-native/scripts/bundle.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ program
3131
'npx react-native config',
3232
)
3333
.option('--load-config <string>', 'JSON project config')
34-
.action(async function handleAction(_, options) {
34+
.action(async function handleAction() {
3535
let config = null;
36-
36+
let options = program.opts();
3737
if (options.loadConfig != null) {
3838
config = JSON.parse(
3939
options.loadConfig.replace(/^\W*'/, '').replace(/'\W*$/, ''),

0 commit comments

Comments
 (0)