You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: use computed import paths to prevent bun bundling ink
The issue was that bun's bundler statically analyzes dynamic imports
and bundles them anyway. By using computed paths like:
const inkPath = ['..', 'ui', 'ink', 'InkRenderer.js'].join('/');
await import(inkPath);
bun cannot statically resolve the import and excludes it from the bundle.
This reduces the bundle from 541 modules to 424 modules and fixes the
'Cannot find package react-devtools-core' error in compiled binaries.
0 commit comments