Skip to content

Commit

Permalink
fix: peerDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
fupengl committed May 31, 2022
1 parent 29f5da9 commit 2b1b64f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2b1b64f

Please sign in to comment.