@dialstack/sdk-dev / react/src
react/src
Shared React plumbing: the provider every component needs, and the hooks that read it.
Components are not exported here. Each lives behind its own subpath —
@dialstack/sdk-react/call-logs, /dial-plan, /softphone, and so on — so a
consumer's import path itself excludes what they do not use. A root barrel
re-exporting everything makes the whole module graph reachable, which measured
at ~127 KB and pulled @xyflow/react, dagre and cmdk into an app that
rendered only a softphone. sideEffects: false cannot fix that (the code is
genuinely reachable, not dead) and neither can preserveModules; splitting the
entry point is the only lever.
This module stays the single home of the components context, so every subpath
resolves one createContext and <OnboardingPortal> can see the provider the
app rendered.