mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 05:26:24 +09:00
Here replaced esbuild with vite for building sdk-components packages. Vite can be configured to output preserved structure instead of bundling everything into single module which hurts treeshaking a lot. sdk-components-react ./fixtures/ssg/dist/client: 284kB (-24kB) ./fixtures/webstudio-remix-netlify-functions/build/client: 368kB (-28kB) ./fixtures/webstudio-remix-vercel/build/client: 1004kB (-8kB) sdk-components-react-radix ./fixtures/ssg/dist/client: 284kB (-4kB) ./fixtures/webstudio-remix-netlify-functions/build/client: 372kB (0kB) ./fixtures/webstudio-remix-vercel/build/client: 900kB (-108kB)
Webstudio SDK Components
Webstudio SDK is a TypeScript API that lets you use your Webstudio project or some components in your custom codebase or just render a complete Remix Document.