I shipped one SDK for React, Vue, Angular, Svelte and vanilla JS. Each framework broke it differently
javascript
dev.to
I maintain an analytics SDK for Figma plugins. Plugin authors use whatever UI framework they like, so the SDK has five front doors: React, Vue, Angular, Svelte and plain TypeScript. I did not want five SDKs. I wanted one, with five small wrappers. This post is about where the line between them ended up, and the one thing in each framework that would not fit behind it. What the core owns Everything that is hard lives in @tode-sdk/core: a singleton that holds the config and sends ev