From a2483e856b2f9e0442950c8279a7fa851395780b Mon Sep 17 00:00:00 2001 From: Shivam Sharma Date: Tue, 21 Jan 2025 14:21:52 +0530 Subject: [PATCH] fix(vite): ensures the paths are correctly formatted for all os --- packages/zudoku/src/vite/plugin-api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/zudoku/src/vite/plugin-api.ts b/packages/zudoku/src/vite/plugin-api.ts index 35c3108e6..284a2012e 100644 --- a/packages/zudoku/src/vite/plugin-api.ts +++ b/packages/zudoku/src/vite/plugin-api.ts @@ -175,7 +175,7 @@ const viteApiPlugin = (getConfig: () => ZudokuPluginOptions): Plugin => { ` schemaImports: {`, ...Array.from(schemaMap.entries()).map( ([key, schemaPath]) => - ` "${key}": () => import("${schemaPath}"),`, + ` "${key}": () => import("${schemaPath.replace(/\\/g, "/")}"),`, ), ` },`, "}));",