@@ -54,7 +54,6 @@ function copyAgentTemplates(): Plugin {
5454
5555 mkdirSync ( join ( __dirname , ".vite/build/templates" ) , { recursive : true } ) ;
5656 copyFileSync ( templateSrc , templateDest ) ;
57- console . log ( "Copied agent templates to build directory" ) ;
5857 } ,
5958 } ;
6059}
@@ -102,22 +101,21 @@ function copyClaudeExecutable(): Plugin {
102101 existsSync ( join ( candidate . path , "cli.js" ) ) &&
103102 existsSync ( join ( candidate . path , "yoga.wasm" ) )
104103 ) {
105- console . log (
106- `[copy-claude-executable] Found pre-built artifacts at ${ candidate . path } ` ,
107- ) ;
104+ // console.log(
105+ // `[copy-claude-executable] Found pre-built artifacts at ${candidate.path}`,
106+ // );
108107 const files = [ "cli.js" , "package.json" , "yoga.wasm" ] ;
109108 for ( const file of files ) {
110109 copyFileSync ( join ( candidate . path , file ) , join ( destDir , file ) ) ;
111110 }
112- console . log ( "Copied Claude CLI to claude-cli/ subdirectory" ) ;
113111 return ;
114112 }
115113 }
116114
117115 // Fallback: Assemble from individual source packages (Development Workspace)
118- console . log (
119- "[copy-claude-executable] Pre-built artifacts not found. Attempting to assemble from workspace sources..." ,
120- ) ;
116+ // console.log(
117+ // "[copy-claude-executable] Pre-built artifacts not found. Attempting to assemble from workspace sources...",
118+ // );
121119
122120 const rootNodeModules = join ( __dirname , "../../node_modules" ) ;
123121 const sdkDir = join ( rootNodeModules , "@anthropic-ai/claude-agent-sdk" ) ;
@@ -165,14 +163,20 @@ export default defineConfig({
165163 "@api" : path . resolve ( __dirname , "./src/api" ) ,
166164 } ,
167165 } ,
166+ cacheDir : ".vite/cache" ,
168167 build : {
169168 target : "node18" ,
170- minify : false , // Disable minification to prevent variable name conflicts
169+ minify : false ,
170+ reportCompressedSize : false ,
171171 commonjsOptions : {
172172 transformMixedEsModules : true ,
173173 } ,
174174 rollupOptions : {
175175 external : [ "node-pty" , "@parcel/watcher" , "file-icon" ] ,
176+ onwarn ( warning , warn ) {
177+ if ( warning . code === "UNUSED_EXTERNAL_IMPORT" ) return ;
178+ warn ( warning ) ;
179+ } ,
176180 } ,
177181 } ,
178182} ) ;
0 commit comments