From 9d4bc81d0f1ac1614ab1ffb95d708f622c836ceb Mon Sep 17 00:00:00 2001 From: Casey Harper <30844254+Betanoir@users.noreply.github.com> Date: Sun, 11 May 2025 18:46:12 +0200 Subject: [PATCH] fix(plugins, utils): Plugin admin folder loading with backslash on Windows (#12418) * fix: Plugin admin folder loading with backslash on Windows * fix: Plugin admin folder loading with backslash on Windows - Add changeset --------- Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com> --- .changeset/thin-buckets-behave.md | 5 +++++ packages/core/utils/src/common/get-resolved-plugins.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/thin-buckets-behave.md diff --git a/.changeset/thin-buckets-behave.md b/.changeset/thin-buckets-behave.md new file mode 100644 index 0000000000..41e1fd2f7b --- /dev/null +++ b/.changeset/thin-buckets-behave.md @@ -0,0 +1,5 @@ +--- +"@medusajs/utils": patch +--- + +fix(plugins): plugin admin folder loading with backslash on Windows diff --git a/packages/core/utils/src/common/get-resolved-plugins.ts b/packages/core/utils/src/common/get-resolved-plugins.ts index a1c5d7f0b6..2661d4e7b1 100644 --- a/packages/core/utils/src/common/get-resolved-plugins.ts +++ b/packages/core/utils/src/common/get-resolved-plugins.ts @@ -97,7 +97,7 @@ async function resolvePlugin( const adminConfig = hasAdmin ? { type: isAdminLocal ? ("local" as const) : ("package" as const), - resolve: path.join( + resolve: path.posix.join( isAdminLocal ? pluginStaticOptions.srcDir : name, "admin" ),