Dashboard › opencode › TypeScript import restrictions
01a0a5c1-2755-7361-9e36-ebf993b51adbNever alias imports, use star imports, or use type-position import("..."). Import canonical named exports directly; namespace-style access must use the module’s own named namespace export, such as { Project } and Project.ID. Dynamically import heavy, Node-only, or startup-sensitive modules in the narrowest branch and destructure bindings near that scope’s top; inline dynamic-import chains obscure evaluation boundaries.