Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

monograph: mark `sharp` as external dep in vite

Abdullah Attac848f3c58899
diff --git a/apps/monograph/vite.config.ts b/apps/monograph/vite.config.ts
index 11424bbea..68a9af3ce 100644
--- a/apps/monograph/vite.config.ts
+++ b/apps/monograph/vite.config.ts
@@ -80,6 +80,11 @@ export default defineConfig(({ isSsrBuild }) => ({
},
build: {
target: isSsrBuild ? "node20" : undefined,
+ rollupOptions: {
+ external: [
+ "sharp"
+ ]
+ }
},
define: {
[DEFAULT_THEME_KEY]: JSON.stringify(ThemeDark)