Update vite.config.ts

This commit is contained in:
Shunsuke Shibayama 2025-11-16 12:19:12 +09:00
parent 981ce98c83
commit 6d632b1ccf

View file

@ -3,6 +3,7 @@ import tailwindcss from "@tailwindcss/vite";
import react from "@vitejs/plugin-react-swc";
import { dirname, join } from "path";
import { fileURLToPath } from "url";
import { normalizePath } from "vite";
import { viteStaticCopy } from "vite-plugin-static-copy";
const PYODIDE_EXCLUDE = [
@ -23,7 +24,7 @@ export function viteStaticCopyPyodide() {
return viteStaticCopy({
targets: [
{
src: [join(pyodideDir, "*").replace(/\\/g, "/"), ...PYODIDE_EXCLUDE],
src: [normalizePath(join(pyodideDir, "*")), ...PYODIDE_EXCLUDE],
dest: "assets",
},
],