Environment-aware lazy loader shim that defaults to `React.lazy` for non-Next.js hosts (Vite, esbuild, CRA) while supporting opt-in delegation to the real `next/dynamic` in Next.js environments. ## Key Components | Export | Type | Description | |--------|------|-------------| | `dynamic` | Default export | Drop-in lazy loader; delegates to `React.lazy` or registered `next/dynamic` | | `registerDynamic` | Named export | One-time registration to swap in the real `next/dynamic` at app init | | `DynamicOptions` | Interface | Subset of `next/dynamic` options (`loading`, `ssr`, `suspense`) | | `DynamicLoader
` | Type | Loader function returning `{ default: ComponentType }` or bare component |
## Usage Example
**Non-Next.js host (Vite/CRA) — no setup required:**
```typescript
import dynamic from '@flamingo-stack/openframe-frontend-core/next-dynamic'
// Callers must be wrapped in a