Giter Club home page Giter Club logo

Comments (10)

smallnew avatar smallnew commented on June 5, 2024

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
在基础包添加``反斜杠表达式试试,由于基础包没有这个特性就没有就没被打进去

from react-native-multibundler.

zdongcoding avatar zdongcoding commented on June 5, 2024

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
在基础包添加``反斜杠表达式试试,由于基础包没有这个特性就没有就没被打进去

还是不行, 我们想是把第三方公有库 打到 platform里面 报这个错

from react-native-multibundler.

smallnew avatar smallnew commented on June 5, 2024

这个是在运行时候报的错,而不是在打包时候报错吧

from react-native-multibundler.

zdongcoding avatar zdongcoding commented on June 5, 2024

打包 没有问题, 问题都是发生在 运行时

from react-native-multibundler.

zdongcoding avatar zdongcoding commented on June 5, 2024

顺便 问下 你们 有木有打 第三方 例如 redux 打到 platform 里面 好像很多坑啊

from react-native-multibundler.

smallnew avatar smallnew commented on June 5, 2024

打过,没什么问题,你这个报错因为你业务包某些babel属性基础包没有,如果知道是什么属性加上就行

from react-native-multibundler.

zdongcoding avatar zdongcoding commented on June 5, 2024

那你怎么解决 依赖的依赖 也就是子依赖问题 打 第三方包 有子依赖的话 用 一个 import 无法加载 只依赖的库,导致 platform 加载失败

from react-native-multibundler.

smallnew avatar smallnew commented on June 5, 2024

把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.

zdongcoding avatar zdongcoding commented on June 5, 2024

好的, 谢谢, bz 的 bundle 能打进去, 但是 platform.android.bundle 就加载失败了,因为 platform.android.bundle 可能需要这个 @babel/runtime/helpers/ 正常都可以运行, 但是我们把第三方基础库打包到 platform里面 才报这个错

from react-native-multibundler.

smallnew avatar smallnew commented on June 5, 2024

问题已经修复,见最新版本

from react-native-multibundler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.