File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,6 @@ export { buildUserMessageContent } from '../../packages/agent-runtime/src/util/m
1919export type { AgentDefinition } from '../../common/src/templates/initial-agents-dir/types/agent-definition'
2020export type { ToolName } from '../../common/src/tools/constants'
2121
22- // Re-export code analysis functionality
23- export * from '../../packages/code-map/src/index'
24-
2522export type {
2623 ClientToolCall ,
2724 ClientToolName ,
Original file line number Diff line number Diff line change @@ -35,6 +35,16 @@ const nextConfig = {
3535 'async_hooks' ,
3636 )
3737
38+ // Externalize code-map package to avoid bundling tree-sitter WASM files
39+ // The web app doesn't need code-map functionality (only SDK CLI tools do)
40+ config . externals . push (
41+ '@codebuff/code-map' ,
42+ '@codebuff/code-map/parse' ,
43+ '@codebuff/code-map/languages' ,
44+ / ^ @ c o d e b u f f \/ c o d e - m a p / ,
45+ 'esbuild' , // Used by SDK's load-agents.ts
46+ )
47+
3848 // Suppress contentlayer webpack cache warnings
3949 config . infrastructureLogging = {
4050 level : 'error' ,
You can’t perform that action at this time.
0 commit comments