Skip to content

Commit

Permalink
Fixes js bundle failed (#45155)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
zhongwuzw authored and cortinico committed Jun 26, 2024
1 parent 865aaed commit 4783de7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-native/scripts/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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*$/, ''),
Expand Down

0 comments on commit 4783de7

Please sign in to comment.