You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This script shows how process your application code with source maps and hermesc. By using this script, Backtrace integration can process
4
+
# your source code to generate valid source map files. This script does exactly the same what the hermesc script does, with one exception -
5
+
# before the native library is generated, this script will process source code and source map to generate output needed in next steps for source map integration.
shellScript = "set -e\n\n# destination source map directory\nSOURCE_MAP_DIR=\"$(pwd)/../build\"\nmkdir -p $SOURCE_MAP_DIR\n\nexport SOURCEMAP_FILE=\"$SOURCE_MAP_DIR/main.js.map\";\nWITH_ENVIRONMENT=\"../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../node_modules/react-native/scripts/react-native-xcode.sh\"\n\n# use hermesc script provided by Backtrace to populate source maps\n# if you dont use hermes support, please skip this step.\nexport HERMES_CLI_PATH=\"$(pwd)/../ios-hermesc.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n\n# copy javascript build output to the build directory\ncp \"$CONFIGURATION_BUILD_DIR/main.jsbundle\" $SOURCE_MAP_DIR \n \n# process source map with javascript code\nnpx --yes @backtrace/javascript-cli run --config \"$(pwd)/../.backtracejsrc\" --path \"$SOURCE_MAP_DIR/main.jsbundle\" \n";
0 commit comments