diff --git a/packages/sanity/src/_internal/cli/server/buildVendorDependencies.ts b/packages/sanity/src/_internal/cli/server/buildVendorDependencies.ts index 5ec56fc7a0b..f2402a22fea 100644 --- a/packages/sanity/src/_internal/cli/server/buildVendorDependencies.ts +++ b/packages/sanity/src/_internal/cli/server/buildVendorDependencies.ts @@ -195,11 +195,14 @@ export async function buildVendorDependencies({ ) } - const specifier = path.join(packageName, subpath) - const chunkName = path.join(packageName, path.relative(packageName, specifier) || 'index') + const specifier = path.posix.join(packageName, subpath) + const chunkName = path.posix.join( + packageName, + path.relative(packageName, specifier) || 'index', + ) entry[chunkName] = entryPoint - imports[specifier] = path.join('/', basePath, VENDOR_DIR, `${chunkName}.mjs`) + imports[specifier] = path.posix.join('/', basePath, VENDOR_DIR, `${chunkName}.mjs`) } }