From 2b1b64f8f485381ee6a0e76548a083b9d33b30f9 Mon Sep 17 00:00:00 2001 From: fupeng Date: Tue, 31 May 2022 14:35:14 +0800 Subject: [PATCH] fix: peerDependencies --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index e12f2a1..905195f 100644 --- a/index.js +++ b/index.js @@ -137,7 +137,7 @@ function rewiredSingleSpa({ externals.push(new RegExp(`^@${orgName}/`)); } if (!!peerDepsAsExternal) { - externals.push(...Object.keys(pkgJson.peerDepsAsExternal || {})); + externals.push(...Object.keys(pkgJson.peerDependencies || {})); } externals.push("single-spa"); config.externals = externals;