repack icon indicating copy to clipboard operation
repack copied to clipboard

Does re.pack support react-native-web?

Open jieey1140 opened this issue 2 months ago • 8 comments

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

jieey1140 avatar Oct 17 '25 05:10 jieey1140

The documentation doesn’t say anything about it. I’m also looking for it.

vitorleonel avatar Oct 19 '25 04:10 vitorleonel

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.

dannyhw avatar Dec 04 '25 11:12 dannyhw

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.

tqpgun avatar Dec 04 '25 16:12 tqpgun

Web support would be very helpful here as well, and i would like to help in any way i can

ElielC avatar Dec 04 '25 20:12 ElielC

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.

dannyhw avatar Dec 08 '25 21:12 dannyhw

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.

jbroma avatar Dec 09 '25 16:12 jbroma

oh, I really miss react native web

it was a second pain point after missing nativewind support

Rnbsov avatar Dec 10 '25 05:12 Rnbsov

hope you will have time to implement it sometime

thanks for your work!

Rnbsov avatar Dec 10 '25 05:12 Rnbsov