diff --git a/packages/taro-rn-supporter/src/Support.ts b/packages/taro-rn-supporter/src/Support.ts index 8454ec4c26ac..c1b2b5b31bdb 100644 --- a/packages/taro-rn-supporter/src/Support.ts +++ b/packages/taro-rn-supporter/src/Support.ts @@ -132,8 +132,8 @@ export async function getMetroConfig (opt: Options = {}, toMergeConfig?: MetroCo return Middleware } }, - }; - if (!toMergeConfig) return taroMetroConfig; + } + if (!toMergeConfig) return taroMetroConfig const blockListTaro = taroMetroConfig.resolver?.blockList const blockListMerge = toMergeConfig.resolver?.blockList @@ -147,5 +147,5 @@ export async function getMetroConfig (opt: Options = {}, toMergeConfig?: MetroCo resolveRequest: taroMetroConfig.resolver?.resolveRequest, } }) - return finalConfig; + return finalConfig }