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 } diff --git a/packages/taro-rn-supporter/tsconfig.json b/packages/taro-rn-supporter/tsconfig.json index edda9d2c0db5..493cd20501f0 100644 --- a/packages/taro-rn-supporter/tsconfig.json +++ b/packages/taro-rn-supporter/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.root.json", "compilerOptions": { "rootDir": "./src", - "outDir": "dist", + "outDir": "/Users/zhiqingchen/taro-rn-oh/taroDemo/node_modules/@tarojs/rn-supporter/dist", "sourceMap": true, "types": ["node"], "module": "commonjs",