mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 13:03:42 +00:00
fix(tui): externalize koffi from bun binary builds
Changed koffi import from top-level to dynamic require in enableWindowsVTInput() and added --external koffi to bun build. This prevents embedding all 18 platform .node files (~74MB) into every compiled binary. For Windows builds, only the win32_x64 koffi.node is shipped alongside the binary. Binary size reduction: darwin-arm64 142MB -> 67MB, archive 43MB -> 28MB.
This commit is contained in:
parent
3a3e37d390
commit
8386a807ff
4 changed files with 26 additions and 3 deletions
|
|
@ -2,6 +2,10 @@
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
### Fixed
|
||||
|
||||
- Externalized koffi from bun binary builds, reducing archive sizes by ~15MB per platform (e.g. darwin-arm64: 43MB -> 28MB). Koffi's Windows-only `.node` file is now shipped alongside the Windows binary only.
|
||||
|
||||
## [0.54.0] - 2026-02-19
|
||||
|
||||
### Added
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue