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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user