From 812a0d41720d757b00117762063ce9bad9568dd5 Mon Sep 17 00:00:00 2001 From: Ian <52504170+ibacher@users.noreply.github.com> Date: Wed, 1 Nov 2023 12:32:17 -0400 Subject: [PATCH] (fix) Fix requiredVersion for SWR share (#802) --- packages/tooling/webpack-config/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tooling/webpack-config/src/index.ts b/packages/tooling/webpack-config/src/index.ts index 1a50dedcb..a3129b6ff 100644 --- a/packages/tooling/webpack-config/src/index.ts +++ b/packages/tooling/webpack-config/src/index.ts @@ -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/",