Comments (10)
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
在基础包添加``反斜杠表达式试试,由于基础包没有这个特性就没有就没被打进去
from react-native-multibundler.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
在基础包添加``反斜杠表达式试试,由于基础包没有这个特性就没有就没被打进去
还是不行, 我们想是把第三方公有库 打到 platform里面 报这个错
from react-native-multibundler.
这个是在运行时候报的错,而不是在打包时候报错吧
from react-native-multibundler.
打包 没有问题, 问题都是发生在 运行时
from react-native-multibundler.
顺便 问下 你们 有木有打 第三方 例如 redux 打到 platform 里面 好像很多坑啊
from react-native-multibundler.
打过,没什么问题,你这个报错因为你业务包某些babel属性基础包没有,如果知道是什么属性加上就行
from react-native-multibundler.
那你怎么解决 依赖的依赖 也就是子依赖问题 打 第三方包 有子依赖的话 用 一个 import 无法加载 只依赖的库,导致 platform 加载失败
from react-native-multibundler.
把buz57.config.js中postProcessModulesFilter函数的判断改成如下
if(module['path'].indexOf(pathSep+'node_modules'+pathSep)>0){
if('js'+pathSep+'script'+pathSep+'virtual'==module['output'][0]['type']){
return true;
}
if(module['path'].indexOf(pathSep+'node_modules'+pathSep+'@babel'
+pathSep+'runtime'+pathSep+'helpers')>0){//添加这个判断,让@babel/runtime打进包去
return true;
}
return false;
}
from react-native-multibundler.
好的, 谢谢, bz 的 bundle 能打进去, 但是 platform.android.bundle 就加载失败了,因为 platform.android.bundle 可能需要这个 @babel/runtime/helpers/ 正常都可以运行, 但是我们把第三方基础库打包到 platform里面 才报这个错
from react-native-multibundler.
问题已经修复,见最新版本
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.