make sure pdf viewer builds

This commit is contained in:
polv committed 2026-03-26 00:10:58 +07:00
1 parent 32ae81cb20
commit 1dae31e2bc
6 files changed
+292 -40

No files matched your search

+6
View File
@@ -62,4 +62,10 @@ export default defineConfig({
md.use(mdInline);
},
},
vite: {
ssr: {
noExternal: [],
external: ["pdfjs-dist"], // don't bundle it for SSR — leave it browser-only
},
},
});