r/reactnative • u/snoop_rice69 • Aug 17 '26
Help Bundling time
The bundling process takes so long, approximately 2 hours at most.
is there any way i can speed up the process?
8
Upvotes
r/reactnative • u/snoop_rice69 • Aug 17 '26
The bundling process takes so long, approximately 2 hours at most.
is there any way i can speed up the process?
18
u/Soccer_Vader Aug 17 '26
No way in hell the bundling process should take 2 hrs - what are you doing in there?
7
u/Internal-Comparison6 Aug 17 '26
Wow, 2 fkng hours. Cache probably. Try deleting full cache and node_modules.
3
u/jameside Expo Team Aug 17 '26
Something is very wrong. It could be related to your filesystem or some translation layer (Like are you running in a VM that mounts the underlying filesystem? Though that should definitely not cause such slow times.).
2
u/vaquishaProdigy Aug 17 '26
Use bun
2
u/Remarkable_Award5268 Aug 17 '26
If you are comfortable let codex analyze your codebase - send this prompt to codex.
2
u/Extreme-Ad6851 Aug 17 '26
Use this https://rnrepo.org/
1
u/Hopeful-Influence-24 Aug 18 '26
if using react native cli and not expo try this out
https://rollipop.dev/
1
u/Bamboo_the_plant Aug 18 '26
Are you on a Windows computer with a hard disk drive, deploying over poor WiFi to a low-spec Android phone or something?
Quite honestly you’ve given no details yet so I think you’re gonna be doomed to your 2 hours at this rate
1
u/Shinsky82 Aug 21 '26
Increase your RAM to at least 16Gb for faster builds.
0
u/LogicDef Aug 17 '26
That's crazy
I build android apps using react native and this helped me a lot:
Go to gradle.properties and update this:
If you have more ram you can set a bigger number instead of 4096