Does re.pack support react-native-web?
Description
Hello,
I am currently running a large app with a bundle size of about 50MB. Since 70% of that consists of content-related games, I am planning to introduce Re.pack to load them as remote bundles.
We are using Expo to manage our iOS, Android, and web platforms. I am wondering if Re.pack also supports the web, similar to how Expo supports the web.
Suggested solution
No response
Additional context
No response
The documentation doesn’t say anything about it. I’m also looking for it.
The answer to this is that no it doesn't directly support web right now, if there was more demand for it then it could be possible to implement.
I am happy to help add support. Kindly point us to the right direction. Kindly share any tips and caveats to be aware of in order to speed up the effort.
Web support would be very helpful here as well, and i would like to help in any way i can
I don't know much about this since I'm just getting to know repack and wanted to help respond to some issues. I think it would require reworking some apis to be more generic, I will see if I can find out what specifically would be required.
Hey folks!
Support react-native-web or web target in general mostly boils down to refactoring existing Re.Pack plugin and bundling logic so that it accounts for web as a target. Many Re.Pack internals right now assume platform to be either android or ios. This will most likely introduce breaking changes so it requires a major release to account for that.
Great example of this is packages/repack/src/plugins/RepackTargetPlugin/RepackTargetPlugin.ts which is strictly for the native runtime of Hermes.
oh, I really miss react native web
it was a second pain point after missing nativewind support
hope you will have time to implement it sometime
thanks for your work!