Skip to content

Commit 348a914

Browse files
juliusmarmingeJulius Marminge
andauthored
fix(cli): bundle patched diff parser dependency (#2957)
Co-authored-by: Julius Marminge <julius@mac.lan>
1 parent 9fc485a commit 348a914

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

apps/server/vite.config.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@ import { defineConfig, mergeConfig } from "vite-plus";
33

44
import 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

817
export 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: {

0 commit comments

Comments
 (0)