Skip to content

Commit

Permalink
monograph: mark sharp as external dep in vite
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed Nov 23, 2024
1 parent 52a75cf commit c848f3c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/monograph/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ export default defineConfig(({ isSsrBuild }) => ({
},
build: {
target: isSsrBuild ? "node20" : undefined,
rollupOptions: {
external: [
"sharp"
]
}
},
define: {
[DEFAULT_THEME_KEY]: JSON.stringify(ThemeDark)
Expand Down

0 comments on commit c848f3c

Please sign in to comment.