Skip to content

Commit 240e6e8

Browse files
committed
test windows fix
1 parent 9e7419d commit 240e6e8

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"packageManager": "[email protected]",
2929
"pnpm": {
3030
"patchedDependencies": {
31-
"@sanity/util": "patches/@sanity__util.patch"
31+
"@sanity/util": "patches/@sanity__util.patch",
32+
"sanity": "patches/sanity.patch"
3233
}
3334
}
3435
}

patches/sanity.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/lib/_chunks-es/runtime.js b/lib/_chunks-es/runtime.js
2+
index 4ee5dce07f4ad2090f2435a74285b3e966e41993..afe774cc357ba46e9502f934d8ff943bf502b44d 100644
3+
--- a/lib/_chunks-es/runtime.js
4+
+++ b/lib/_chunks-es/runtime.js
5+
@@ -765,7 +765,7 @@ function sanityRuntimeRewritePlugin() {
6+
}
7+
};
8+
}
9+
-const __dirname$1 = path.dirname(new URL(import.meta.url).pathname);
10+
+const __dirname$1 = path.dirname(fileURLToPath(import.meta.url));
11+
async function getViteConfig(options) {
12+
const {
13+
cwd,

0 commit comments

Comments
 (0)