my fork of the bluesky client
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 41 lines 1.6 kB view raw
1diff --git a/node_modules/metro-transform-worker/src/index.js b/node_modules/metro-transform-worker/src/index.js 2index 9f2e3d2..5222c8e 100644 3--- a/node_modules/metro-transform-worker/src/index.js 4+++ b/node_modules/metro-transform-worker/src/index.js 5@@ -189,6 +189,10 @@ async function transformJS(file, { config, options, projectRoot }) { 6 let dependencyMapName = ""; 7 let dependencies; 8 let wrappedAst; 9+ const minify = 10+ options.minify && 11+ options.unstable_transformProfile !== "hermes-canary" && 12+ options.unstable_transformProfile !== "hermes-stable"; 13 14 // If the module to transform is a script (meaning that is not part of the 15 // dependency graph and it code will just be prepended to the bundle modules), 16@@ -228,19 +232,20 @@ async function transformJS(file, { config, options, projectRoot }) { 17 if (config.unstable_disableModuleWrapping === true) { 18 wrappedAst = ast; 19 } else { 20+ let moduleFactoryName; 21+ if (options.dev && !minify) { 22+ moduleFactoryName = file.filename; 23+ } 24 ({ ast: wrappedAst } = JsFileWrapping.wrapModule( 25 ast, 26 importDefault, 27 importAll, 28 dependencyMapName, 29- config.globalPrefix 30+ config.globalPrefix, 31+ moduleFactoryName 32 )); 33 } 34 } 35- const minify = 36- options.minify && 37- options.unstable_transformProfile !== "hermes-canary" && 38- options.unstable_transformProfile !== "hermes-stable"; 39 const reserved = []; 40 if (config.unstable_dependencyMapReservedName != null) { 41 reserved.push(config.unstable_dependencyMapReservedName);