Commit 6cbe85a
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
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
0 commit comments