fastlane/lib/sourcemaps.rb
# Use react-native cli to generate the source map
Use react-native cli to generate the source map
Use react - native cli to generate the source map
def generate_sourcemap
  args = get_sourcemap_args
  cmd = [
    'npx react-native bundle',
    '--dev false',
    "--platform '#{args[:platform]}'",
    "--entry-file '#{args[:entry_file]}'",
    "--bundle-output '#{args[:bundle_output]}'",
    "--sourcemap-output '#{args[:sourcemap_output]}'",
  ].join ' '
  FastlaneCore::CommandExecutor.execute(command: cmd,
                                        print_all: true,
                                        print_command: true)
end
def generate_sourcemap args = get_sourcemap_args cmd = [ 'npx react-native bundle' , '--dev false' , "--platform '#{args[:platform]}'" , "--entry-file '#{args[:entry_file]}'" , "--bundle-output '#{args[:bundle_output]}'" , "--sourcemap-output '#{args[:sourcemap_output]}'" , ] . join ' ' FastlaneCore :: CommandExecutor . execute ( command : cmd , print_all : true , print_command : true ) end
Use react-native cli to generate the source map
Use react - native cli to generate the source map