From eb3ef6cf63cc283b0477af19d935734a2dfbf240 Mon Sep 17 00:00:00 2001 From: Janic Duplessis Date: Fri, 1 Oct 2021 16:25:55 -0400 Subject: [PATCH] Revert "Quote --sourcemap-output argument during ios build (#31587)" This reverts commit f3fe7a0fb5fc0325fbe062c6df4cbf8b58779189. --- scripts/react-native-xcode.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/react-native-xcode.sh b/scripts/react-native-xcode.sh index efd8b79d56c9ab..8da1388830abff 100755 --- a/scripts/react-native-xcode.sh +++ b/scripts/react-native-xcode.sh @@ -112,7 +112,7 @@ fi BUNDLE_FILE="$CONFIGURATION_BUILD_DIR/main.jsbundle" -EXTRA_ARGS=() +EXTRA_ARGS= case "$PLATFORM_NAME" in "macosx") @@ -139,12 +139,12 @@ if [[ $EMIT_SOURCEMAP == true ]]; then else PACKAGER_SOURCEMAP_FILE="$SOURCEMAP_FILE" fi - EXTRA_ARGS+=("--sourcemap-output" "$PACKAGER_SOURCEMAP_FILE") + EXTRA_ARGS="$EXTRA_ARGS --sourcemap-output $PACKAGER_SOURCEMAP_FILE" fi # Hermes doesn't require JS minification. if [[ $USE_HERMES == true && $DEV == false ]]; then - EXTRA_ARGS+=("--minify" "false") + EXTRA_ARGS="$EXTRA_ARGS --minify false" fi # PRODUCT_SETTINGS_PATH is where the target Info.plist file is. The asset @@ -160,8 +160,8 @@ ASSET_CATALOG_DEST=${ASSET_CATALOG_DEST:-"$(dirname "$PRODUCT_SETTINGS_PATH")"} --bundle-output "$BUNDLE_FILE" \ --assets-dest "$DEST" \ --asset-catalog-dest "$ASSET_CATALOG_DEST" \ - "${EXTRA_ARGS[@]}" \ - "${EXTRA_PACKAGER_ARGS[@]}" + $EXTRA_ARGS \ + $EXTRA_PACKAGER_ARGS if [[ $USE_HERMES != true ]]; then cp "$BUNDLE_FILE" "$DEST/"