Skip to content

[MOO-1847]: Include @d11/react-native-fast-image as an external native dependancy in rollup config#140

Merged
mlaponder merged 3 commits intomendix:masterfrom
YogendraShelke:moo/MOO-1847-upgrade-react-native-fast-image
Sep 29, 2025
Merged

[MOO-1847]: Include @d11/react-native-fast-image as an external native dependancy in rollup config#140
mlaponder merged 3 commits intomendix:masterfrom
YogendraShelke:moo/MOO-1847-upgrade-react-native-fast-image

Conversation

@YogendraShelke
Copy link
Copy Markdown
Contributor

@YogendraShelke YogendraShelke commented Sep 11, 2025

Checklist

  • Contains unit tests ❌
  • Contains breaking changes ❌
  • Compatible with: MX11
  • Did you update version and changelog? ❌
  • PR title properly formatted ([XX-000]: description)? ✅

This PR contains

  • Bug fix
  • Feature
  • Refactor
  • Documentation
  • Other - Rollup config update to include new external native dependancy

What is the purpose of this PR?

Update rollup native config to include @d11/react-native-fast-image dependancy to avoid duplicate symbols error

@weirdwater
Copy link
Copy Markdown
Collaborator

Does this change rely on a specific version of Studio Pro?

@YogendraShelke
Copy link
Copy Markdown
Contributor Author

I think it should not matter as long as we make this config available for SP11. For earlier versions we are not going to introduce @d11/react-native-fast-image so having or not having this config there does not matter.

@weirdwater
Copy link
Copy Markdown
Collaborator

But if the widget is used in a version of mendix that does not have that dependency available at runtime the widget will fail, right?

@YogendraShelke
Copy link
Copy Markdown
Contributor Author

Right, for that minimum SP version(11.3) check will be added in widget itself before releasing new version with this dependancy. So we just have to make sure this config should be present in widget tools where widgets are targeted for SP11.3 and above. Even if we expose this config to SP11.2 this wont hurt existing widget since existing widget does not use this dependancy.

@YogendraShelke
Copy link
Copy Markdown
Contributor Author

YogendraShelke commented Sep 12, 2025

Widget will fail if run in Mendix version which does not include this dependency.

@weirdwater
Copy link
Copy Markdown
Collaborator

weirdwater commented Sep 23, 2025

In that case I would advise against this approach, since we cannot expect customers to always use the latest version, especially version 11 while it is beta.

I would propose providing an example custom rollup.config.mjs that shows how to modify the external dependencies when the error appears.

@weirdwater
Copy link
Copy Markdown
Collaborator

This PR has been discussed with the team. We can proceed with adding the dependency to the list of externals. We just need to update the version of the pluggable-widgets-tools package to 11.3.0 to indicate the minimum version of Mendix that is compatible with the tools.

@YogendraShelke
Copy link
Copy Markdown
Contributor Author

@weirdwater thanks for the update. I have bumped pluggable-widgets-tools version to 11.3.0, please review.

@YogendraShelke
Copy link
Copy Markdown
Contributor Author

@mendix-widgets-framework can i get one more approval on this?

@mlaponder mlaponder merged commit 1c2760e into mendix:master Sep 29, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants