Skip to content

Commit 6cbe85a

Browse files
hbrooksclaude
andcommitted
Fix bun --compile release build: bundle react-devtools-core
`bun build --compile` bundles everything into the single binary, so it follows ink's optional `react-devtools-core` import (a dev-only dynamic import guarded by `process.env.DEV === 'true'`) and fails to resolve it — breaking the release workflow. The tsup `build` doesn't hit this because tsup externalizes deps. Install react-devtools-core as a devDependency so bun can bundle it. It never executes at runtime (the DEV guard stays false), so the production binary is unaffected aside from including the module. Verified locally: `bun build src/cli.tsx --compile` now succeeds and `agent --version` runs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 56dfa8d commit 6cbe85a

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

package-lock.json

Lines changed: 47 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"@types/node": "^22.5.0",
3737
"@types/react": "^18.3.0",
3838
"@types/ws": "^8.5.12",
39+
"react-devtools-core": "^4.28.5",
3940
"tsup": "^8.3.0",
4041
"tsx": "^4.19.0",
4142
"typescript": "^5.6.0",

0 commit comments

Comments
 (0)