DashboardcliInk import behavior

Ink import behavior

Category: preference
Confidence: 1.00
ID: 01a02958-1037-7620-aafe-b488c584ff56
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 0
Source session: 0LTA21f6eDkLyMX9q
Created: 2026-07-15 15:31:51
Updated: 2026-08-22 12:00:32

Content

The main CLI bundle must never call import("ink") at runtime. Chose a pre-bundled self-contained Ink sidecar, with Ink and React inlined by text-import-plugin, over dynamic importing because runtime imports complicate SEA execution and CJS/React interop. Keep Ink-related dependencies external from the main esbuild bundle only because the sidecar supplies them.

Move to: