Skip to content

Commit

Permalink
(fix) Fix requiredVersion for SWR share (#802)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibacher authored Nov 1, 2023
1 parent ef5e9b6 commit 812a0d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tooling/webpack-config/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export default (
// SWR is annoying with Module Federation
// See: https://github.com/webpack/webpack/issues/16125 and https://github.com/vercel/swr/issues/2356
obj["swr/"] = {
requiredVersion: version,
requiredVersion: peerDependencies["swr"] ?? false,
singleton: true,
import: "swr/",
shareKey: "swr/",
Expand Down

0 comments on commit 812a0d4

Please sign in to comment.