Skip to content

Conversation

EmilianoSanchez
Copy link
Contributor

@EmilianoSanchez EmilianoSanchez commented Dec 5, 2024

React SDK

What did you accomplish?

Updated React default imports to namespace imports as this is the recommended approach for improved compatibility:

  • Doesn't require esModuleInterop: true in TypeScript configurations.
  • Some build/bundle tools and configurations may handle ES namespace imports more predictably for tree-shaking.

How do we test the changes introduced in this PR?

Validated in projects with different configurations:

  • Default TypeScript config (esModuleInterop: false)
  • Using the latest React SDK version.
  • Using the minimum React SDK version required by the SDK.

Extra Notes

@EmilianoSanchez EmilianoSanchez requested a review from a team as a code owner December 5, 2024 18:27
Copy link

Copy link

@EmilianoSanchez EmilianoSanchez merged commit 8f8a03e into development Jan 13, 2025
7 checks passed
@EmilianoSanchez EmilianoSanchez deleted the react_namespace_import branch January 13, 2025 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants