mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fixes js bundle failed (#45155)
Summary: When I enabled `FORCE_BUNDLING`, it build errors like below. cc blakef  ## 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:
+2
-2
@@ -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*$/, ''),
|
||||
|
||||
Reference in New Issue
Block a user