ChunkManager.configure #100
-
Hi Repack Team, In the TesterApp, the ChunkManager, resolveRemoteChunk url is configured to port 5000. Firstly, How is then the TesterApp able to load the chucks from port 8081, eventhough the ChunkManager is pointing to port 5000. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In development mode ( In development mode, there's no need to change the port, but if you want to, it's the same process as changing the port with Metro ( |
Beta Was this translation helpful? Give feedback.
In development mode (
__DEV__ === true
)ChunkManager
does not useresolveRemoteChunk
unlessforceRemoteChunkResolution
is set totrue
. That's why it's able to load chunks even though it points to port5000
.More: https://re-pack.netlify.app/docs/api/react-native/classes/ChunkManager
In development mode, there's no need to change the port, but if you want to, it's the same process as changing the port with Metro (
--port <port>
flag and then you need to tell native code to use different port).