File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,16 @@ import { defineConfig, mergeConfig } from "vite-plus";
33
44import baseConfig from "../../vite.config.ts" ;
55
6- const internalPackagePrefixes = [ "@t3tools/" , "effect-acp" , "effect-codex-app-server" ] ;
6+ const bundledPackagePrefixes = [
7+ "@pierre/diffs" ,
8+ "@t3tools/" ,
9+ "effect-acp" ,
10+ "effect-codex-app-server" ,
11+ ] ;
12+
13+ export function shouldBundleCliDependency ( id : string ) : boolean {
14+ return bundledPackagePrefixes . some ( ( prefix ) => id . startsWith ( prefix ) ) ;
15+ }
716
817export default mergeConfig (
918 baseConfig ,
@@ -23,8 +32,7 @@ export default mergeConfig(
2332 sourcemap : true ,
2433 clean : true ,
2534 deps : {
26- alwaysBundle : ( id : string ) =>
27- internalPackagePrefixes . some ( ( prefix ) => id . startsWith ( prefix ) ) ,
35+ alwaysBundle : shouldBundleCliDependency ,
2836 onlyBundle : false ,
2937 } ,
3038 banner : {
You can’t perform that action at this time.
0 commit comments