1*f69191a2SEvan Bacon/** 2*f69191a2SEvan Bacon * Copyright © 2022 650 Industries. 3*f69191a2SEvan Bacon * 4*f69191a2SEvan Bacon * This source code is licensed under the MIT license found in the 5*f69191a2SEvan Bacon * LICENSE file in the root directory of this source tree. 6*f69191a2SEvan Bacon */ 7*f69191a2SEvan Bacon 8*f69191a2SEvan Bacon// Ensure this is removed in production. 9*f69191a2SEvan Bacon// TODO: Enable in production. 10*f69191a2SEvan Baconif (process.env.NODE_ENV !== 'production') { 11*f69191a2SEvan Bacon const { buildAsyncRequire } = 12*f69191a2SEvan Bacon require('./buildAsyncRequire') as typeof import('./buildAsyncRequire'); 13*f69191a2SEvan Bacon // @ts-ignore 14*f69191a2SEvan Bacon global[`${global.__METRO_GLOBAL_PREFIX__ ?? ''}__loadBundleAsync`] = buildAsyncRequire(); 15*f69191a2SEvan Bacon} 16