Comments (4)
That does make sense, but I wouldn't go as far as to say replace. Re.Pack was not intended as a CodePush alternative and doesn't provide as many OTA features as CodePush. You still need a code in a main bundle and you might need to update it at some point, but you won't be able to without CodePush. I would still recommend CodePush as a main solution for OTA due to it's maturity and features regarding hosting, rollbacks, distribution, versioning etc - if you were to use Re.Pack's remote chunks for that, you have to reimplement those functionalities.
from repack.
If you don't intend of using Code Splitting with Re.Pack, then you can use Code Push in a similar way you would do with Metro. However, like you said, if the Code Splitting is used the code will be split between multiple files, and it that case it might be problematic to use Code Plush or it might not work at all. I suspect you still would be able to use Code Push for a main bundle, but all additional chunks will be excluded from Code Push. Keep in mind that in order to use Code Splitting (with remote chunks - hosted on server) you have to configure ChunkManager.configure(...)
which lives in main bundle, so if you change resolveRemoteChunk
function to point to different URL with updated chunks, and you Code Push that new main bundle after the main bundle is applied on target device with Code Push, ChunkManager
should download new chunks since the URL had changed.
from repack.
@zamotany Wait... so may Re.Pack even replace CodePush? I mean, if the main bundle is just a splash screen that loads the other chunks from a server, then in order to update the code running in the app it's just a matter of updating the chunks in the server (and probably notify the app to use the new chunk URLs). Does that make sense?
from repack.
Closing due to inactivity. Additional info is available at: https://re-pack.netlify.app/docs/code-splitting/code-push
from repack.
Related Issues (20)
- Run android with error ERR_UNHANDLED_ERROR HOT 2
- Do containers that are not deployed independently need to set eager to true for react and react-native dependencies? HOT 4
- Happy for help: Getting the error "File artifacts/index.bundle for ios not found in compilation assets" HOT 11
- Question: do I need to add "ChunksToHermesBytecodePlugin" plugin? HOT 7
- Getting error "ReferenceError: Property 'CssSyntaxError' doesn't exist" while using styled-component. HOT 3
- [email protected] @callstack/repack/commands error HOT 3
- Can someone give me idea or tutorial how can i deploy my webpack bundle to local servers HOT 1
- Android Error when navigate Between MFEs HOT 9
- cannot load mini app(Module Federation) when verifyScriptSignature = 'strict' HOT 8
- Can't find variable: __wepack_require__ in ScriptManager.js HOT 10
- Unable to load script. Make sure you're either running Metro HOT 3
- Facing issue while implementing Offline Bundling. HOT 5
- Error in bundling micro apps with react-native-svg packages HOT 3
- [RFC] Override `start` command in `react-native.config.js` HOT 8
- Unhandled error in Webpack Compiler when doing `rpm run ios` HOT 2
- Cannot Resole React Hook Form correctly HOT 7
- repack monorepo deployment help
- Android is crashing when "onMessage" props is accessed in "react-native-webview" library HOT 1
- [RFC] sync API HOT 10
- Improve types for `prefetchScript` and `loadScript` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from repack.