Skip to content

Commit e1d0d0d

Browse files
committed
fix(web): resolve the CJK font alias on paths with spaces
1 parent 71c2d3a commit e1d0d0d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎apps/web/vite.config.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// @effect-diagnostics-next-line nodeBuiltinImport:off -- Vite config runs before any Effect runtime.
22
import * as NodeFSP from "node:fs/promises";
3+
import * as NodeURL from "node:url";
34
import * as NodeZlib from "node:zlib";
45

56
import react from "@vitejs/plugin-react";
@@ -324,10 +325,9 @@ export default defineConfig(() => {
324325
resolve: {
325326
tsconfigPaths: true,
326327
alias: {
327-
"@betteroffice/fonts-cjk": new URL(
328-
"./src/components/files/office/fonts-cjk.ts",
329-
import.meta.url,
330-
).pathname,
328+
"@betteroffice/fonts-cjk": NodeURL.fileURLToPath(
329+
new URL("./src/components/files/office/fonts-cjk.ts", import.meta.url),
330+
),
331331
},
332332
dedupe: ["react", "react-dom"],
333333
},

0 commit comments

Comments
 (0)