1 /* 2 * Copyright (c) Meta Platforms, Inc. and affiliates. 3 * 4 * This source code is licensed under the MIT license found in the 5 * LICENSE file in the root directory of this source tree. 6 */ 7 8 #include "ABI48_0_0JSExecutor.h" 9 10 #include "ABI48_0_0RAMBundleRegistry.h" 11 12 #include <folly/Conv.h> 13 14 namespace ABI48_0_0facebook { 15 namespace ABI48_0_0React { 16 getSyntheticBundlePath(uint32_t bundleId,const std::string & bundlePath)17std::string JSExecutor::getSyntheticBundlePath( 18 uint32_t bundleId, 19 const std::string &bundlePath) { 20 if (bundleId == RAMBundleRegistry::MAIN_BUNDLE_ID) { 21 return bundlePath; 22 } 23 return folly::to<std::string>("seg-", bundleId, ".js"); 24 } 25 26 } // namespace ABI48_0_0React 27 } // namespace ABI48_0_0facebook 28