mirror of
https://github.com/delibae/claude-prism.git
synced 2026-08-28 05:14:59 +00:00
style: format MuPDF dev loading files
This commit is contained in:
parent
1c4eaf3e6d
commit
7ab99b5b5e
2 changed files with 6 additions and 6 deletions
|
|
@ -6,9 +6,11 @@ type MupdfWasmModuleConfig = {
|
|||
locateFile?: (path: string) => string;
|
||||
};
|
||||
|
||||
const wasmModuleConfig = ((globalThis as typeof globalThis & {
|
||||
$libmupdf_wasm_Module?: MupdfWasmModuleConfig;
|
||||
}).$libmupdf_wasm_Module ??= {});
|
||||
const wasmModuleConfig = ((
|
||||
globalThis as typeof globalThis & {
|
||||
$libmupdf_wasm_Module?: MupdfWasmModuleConfig;
|
||||
}
|
||||
).$libmupdf_wasm_Module ??= {});
|
||||
|
||||
// In Vite dev, requests for /node_modules/.../mupdf-wasm.wasm can fall back to
|
||||
// index.html. Pointing MuPDF at Vite's @fs URL keeps worker startup on the
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@ export default defineConfig({
|
|||
},
|
||||
},
|
||||
define: {
|
||||
__MUPDF_WASM_FS_PATH__: JSON.stringify(
|
||||
mupdfWasmFile.replace(/\\/g, "/"),
|
||||
),
|
||||
__MUPDF_WASM_FS_PATH__: JSON.stringify(mupdfWasmFile.replace(/\\/g, "/")),
|
||||
},
|
||||
worker: {
|
||||
format: "es",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue