Comments (3)
I understand that I can code a Remote component -> bundle remote chunk has name is remote.chunk.bundle -> upload this chunk to my server -> and in my other project, I can display Remote component without any code related to this Remote component by downloading remote.chunk.bundle via ChunkManager.
Is my understanding correct?
That's not how it's intended to work, at least not the async chunks approach.
What you're describing is a scenario with 2 project (2 separate Webpack compilations), whereas Async chunks approach is for single project (single Webpack compilation). In theory you could do it with 2 projects, but the likelihood of it working is very slim - most likely it will crash the app because chunks from project A are not compatible with chunks from project B.
If you still want to have 2 projects, your only options are:
from repack.
You can use flag forceRemoteChunkResolution
and it will use provided url
as a source instead of the current dev server even in the development mode.
from repack.
As @zamotany suggested – Module Federation is probably the right option for your use case, luckily repack v3 has official support for MF built in.
from repack.
Related Issues (20)
- 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
- Is it possible to load a remote module before it is requested by the user?
- callstack_repack-Swift.h file not found HOT 11
- Repack app fails with "could not find react-redux context value" for the latest versions of react-redux and @reduxjs/toolkit HOT 3
- Property 'HMRClient' doesn't exist HOT 4
- Challenge Integrating Repack in React Native Mono Repo: App1 Loads Successfully, App2 Fails to Load from Server Bundles HOT 3
- Extract runtime into separate package in monorepo & publish it separately HOT 2
- Migrate ObjC code parts to Swift HOT 2
- How do i use react-native-gesture-handler in both my mini app and host app? HOT 5
- Repack Navigation From Mini App To Main APP HOT 3
- Adopt the new federation runtime HOT 3
- A clear working example of how code signing works with repack HOT 11
- TypeError: Cannot read property 'call' of undefined HOT 6
- Can't use SafeAreaView
- how to handle unavailability of modules in the host application HOT 6
- release host app to store HOT 9
- [ScriptManager] Failed to load script: [ScriptDownloadFailure] HOT 1
- JWTDecode version conflicts with other package HOT 1
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.