react-sdk icon indicating copy to clipboard operation
react-sdk copied to clipboard

[ENHANCEMENT] Reduce the bundle size impact of upgrading from 2.9.2 to v3

Open ericpatey opened this issue 1 year ago • 1 comments

Description

BundlePhobia shows a 63% bundle size increase in 3.0.0. Screenshot 2024-01-25 at 7 41 57 AM

It would be great if the SDK's module/tree shaking design allowed consumers to only incur bundle growth for features that they use.

Benefits

It would make it more likely for consumers to stay up to date with the latest versions of the SDK.

As it is, I'm recommending that we stay on 2.9.2 for our projects.

Detail

No response

Examples

No response

Risks/Downsides

No response

ericpatey avatar Jan 25 '24 13:01 ericpatey

Agree. 💯

Now that our functional requirements are satisified for this new version, we'll be diving into reducing the underlying JavaScript SDK size and then find opportunities to reduce the React SDK as well.

mikechu-optimizely avatar Jan 25 '24 17:01 mikechu-optimizely