1/** 2 * Copyright © 2022 650 Industries. 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// Ensure this is removed in production. 9// TODO: Enable in production. 10if (process.env.NODE_ENV !== 'production') { 11 const { buildAsyncRequire } = 12 require('./buildAsyncRequire') as typeof import('./buildAsyncRequire'); 13 // @ts-ignore 14 global[`${global.__METRO_GLOBAL_PREFIX__ ?? ''}__loadBundleAsync`] = buildAsyncRequire(); 15} 16