We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The problem
PanResponder not working correctly with Webpack 5 Module Federation
How to reproduce
Simplified test case: https://stackblitz.com/edit/github-l3cwda?file=app1%2Fsrc%2FApp.js
Steps to reproduce:
Expected behavior
Drag box in app2 should move correctly
Environment (include versions). Did this work in previous versions?
Additional:
shared
The text was updated successfully, but these errors were encountered:
What is Webpack Module Federation and why does it need weird code changes to work?
Sorry, something went wrong.
@necolas Module Federation can help multiple separate builds share dependencies with each other. https://webpack.js.org/concepts/module-federation/
I found a solution to solve this issue is add both react-native and react-native-web to ModuleFederationPlugin shared field, and set singleton to true. https://stackblitz.com/edit/github-l3cwda-lqkjpy?file=app2%2Fwebpack.config.js
react-native
react-native-web
ModuleFederationPlugin
singleton
true
You are right, it doesn't need weird code changes.
Successfully merging a pull request may close this issue.
The problem
PanResponder not working correctly with Webpack 5 Module Federation
How to reproduce
Simplified test case: https://stackblitz.com/edit/github-l3cwda?file=app1%2Fsrc%2FApp.js
Steps to reproduce:
Expected behavior
Drag box in app2 should move correctly
Environment (include versions). Did this work in previous versions?
Screen.Recording.2022-04-09.at.20.05.38.mov
Additional:
shared
field: not workingshared
field: not workingThe text was updated successfully, but these errors were encountered: