mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-18 11:41:21 +00:00
Update vite.config.ts
This commit is contained in:
parent
981ce98c83
commit
6d632b1ccf
1 changed files with 2 additions and 1 deletions
|
|
@ -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",
|
||||
},
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue