Skip to content

Revert inline dynamic imports for esm bundle#1631

Draft
tonidero wants to merge 3 commits into
mainfrom
revert-inline-dynamic-imports
Draft

Revert inline dynamic imports for esm bundle#1631
tonidero wants to merge 3 commits into
mainfrom
revert-inline-dynamic-imports

Conversation

@tonidero

@tonidero tonidero commented May 4, 2026

Copy link
Copy Markdown
Contributor

We originally added a setting to inline dynamic imports since it wasn't an issue to do so and we needed it to make it work with some formats like umd used in purchases-flutter, but we want to avoid loading stripe until it's actually needed. purchases-js changes already do so, but in hybrids, this does not happen because of this setting.

For now, we're reverting this option for the esm bundle export, which is what's used by react-native-purchases, but keeping the umd export as is to avoid issues in purchases-flutter

@tonidero tonidero added the pr:fix A bug fix label May 4, 2026
@tonidero tonidero changed the title Revert inline dynamic imports Revert inline dynamic imports for esm bundle May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant