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>
This commit is contained in:
Casey Harper
2025-05-11 18:46:12 +02:00
committed by GitHub
parent cc5af67c48
commit 9d4bc81d0f
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/utils": patch
---
fix(plugins): plugin admin folder loading with backslash on Windows

View File

@@ -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"
),