mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-08-28 05:25:25 +00:00
fix: add mermaid ESM alias to fix d3 crash on Vercel
This commit is contained in:
parent
b1c207f31e
commit
44efd94cc5
1 changed files with 2 additions and 0 deletions
|
|
@ -27,6 +27,8 @@ export default defineConfig({
|
|||
'@': path.resolve(__dirname, './src'),
|
||||
// Fix for Rollup failing to resolve this deep import from @langchain/anthropic
|
||||
'@anthropic-ai/sdk/lib/transform-json-schema': path.resolve(__dirname, 'node_modules/@anthropic-ai/sdk/lib/transform-json-schema.mjs'),
|
||||
// Fix for mermaid d3-color prototype crash on Vercel (known issue with mermaid 10.9.0+ and Vite)
|
||||
'mermaid': path.resolve(__dirname, 'node_modules/mermaid/dist/mermaid.esm.min.mjs'),
|
||||
},
|
||||
},
|
||||
// Polyfill Buffer for isomorphic-git (Node.js API needed in browser)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue