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. |
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 ( |
In development mode (
__DEV__ === true)ChunkManagerdoes not useresolveRemoteChunkunlessforceRemoteChunkResolutionis 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).