Comments (5)
That's because of https://github.com/facebook/metro/blob/master/packages/metro/src/lib/polyfills/require.js#L138-L148
https://github.com/smallnew/react-native-multibundler/blob/master/platform57.config.js#L2-L16
to fix, createModuleIdFactory must return a number type.
from react-native-multibundler.
有个不完美的解决方法,打开基础包js 文本,在开头修改var DEV=true,变为var DEV=false,..不过这样可能会缺失一些RN的开发特性
from react-native-multibundler.
有个不完美的解决方法,打开基础包js 文本,在开头修改var DEV=true,变为var DEV=false,..不过这样可能会缺失一些RN的开发特性
如果使用拆包方式的话就意味着要放弃 dev==true 的编译方式吗?
from react-native-multibundler.
有个不完美的解决方法,打开基础包js 文本,在开头修改var DEV=true,变为var DEV=false,..不过这样可能会缺失一些RN的开发特性
如果使用拆包方式的话就意味着要放弃 dev==true 的编译方式吗?
你可以写两套加载逻辑,一套是发布时候用的拆包,一套是测试时候按普通方式加载js包
from react-native-multibundler.
新的版本可以使用数字作为moduleId,这样可以解决打dev为true的包运行出错的问题,新的版本也添加了debug功能
from react-native-multibundler.
Related Issues (20)
- Buz1Activity cannot be cast to androidx.appcompat.app.AppCompatActivity
- RN 0.68.2 以及0.68.3版本使用路径作为ID ,打包出现问题
- useIndex设置为false,加载业务包出错
- rn 0.64 android 打出的jsbundle 有raw文件,ios 没有
- 请问 multibundler/platformNameMap.json 这个文件是如何生成的? HOT 2
- 请问基础bundle需要做更新逻辑吗,如果业务Abundle 依赖基础bundle更新策略是什么呢 HOT 1
- 想要加载其他rn项目的bundle文件应该怎么做呢 HOT 1
- 没有执行预加载的代码会报错 HOT 3
- SmartAssets 本地资源路径 HOT 2
- ModuleIdConfig.json 配置超过index3.js比方说index4打出来的bundle不能用
- 'text' has not been registered,this can happen if*Metro(the local dev server)is run from the wrong folder...... HOT 1
- SmartAssets的问题 HOT 3
- Swfit项目使用0.63.2版本创建RCTBridge对象会卡死 HOT 2
- ios的资源可以更新吗 在拆包后
- iOS远程加载bundle失败的问题 HOT 1
- 使用DEBUG模式调试,出现错误 HOT 6
- English translation
- Hot Reload Mode
- rn 选择0.66,打出的基础包和业务包有问题 HOT 11
- 拆包之后common和业务会分别有一个source Map文件,用于堆栈反混淆。有没有办法将两个source Map文件合并呀?
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 react-native-multibundler.