Skip to content

Commit 6d632b1

Browse files
committed
Update vite.config.ts
1 parent 981ce98 commit 6d632b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

playground/ty/vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import tailwindcss from "@tailwindcss/vite";
33
import react from "@vitejs/plugin-react-swc";
44
import { dirname, join } from "path";
55
import { fileURLToPath } from "url";
6+
import { normalizePath } from "vite";
67
import { viteStaticCopy } from "vite-plugin-static-copy";
78

89
const PYODIDE_EXCLUDE = [
@@ -23,7 +24,7 @@ export function viteStaticCopyPyodide() {
2324
return viteStaticCopy({
2425
targets: [
2526
{
26-
src: [join(pyodideDir, "*").replace(/\\/g, "/"), ...PYODIDE_EXCLUDE],
27+
src: [normalizePath(join(pyodideDir, "*")), ...PYODIDE_EXCLUDE],
2728
dest: "assets",
2829
},
2930
],

0 commit comments

Comments
 (0)