Commit 149ae73
authored
fix(react-native):
This PR should address
#1321
The change should be safe as, per the issue, downstream consumers should
not be able to use `reqire` due to everything being in `esm` syntax.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Moderate risk because changing `package.json` `type` and Babel config
module syntax can affect how tooling and downstream bundlers/loaders
resolve and execute the package.
>
> **Overview**
> Makes the React Native SDK explicitly ESM by switching `package.json`
`type` from `commonjs` to `module`.
>
> Updates `babel.config.js` to use ESM syntax (`export default`) to
align with the package’s module format.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
f2b2634. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->package.json should declare esm format (#1322)1 parent 487182b commit 149ae73
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments