We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
H5
浏览器版本: chrome最新版 使用框架: React
从3.5.2升级到3.5.4
项目定义了跨端组件,里面有用到rn的包里面的类型定义,dev:h5的时候 prebundle提示包含了react native 然后开始报错;H5报错,具体错误如下图。
目前解决方式: 在3.5.4关闭prebundle特性后,报错消失。
compiler: { type: "webpack5", prebundle: { enable: false } },
正常构建(下图为3.5.2版本输出)
异常构建
👽 Taro v3.5.4 Taro CLI 3.5.4 environment info: System: OS: macOS 12.5.1 Shell: 5.8.1 - /bin/zsh Binaries: Node: 18.6.0 - ~/.nvm/versions/node/v18.6.0/bin/node Yarn: 1.22.19 - ~/.nvm/versions/node/v18.6.0/bin/yarn npm: 8.18.0 - ~/.nvm/versions/node/v18.6.0/bin/npm npmPackages: @tarojs/cli: 3.5.4 => 3.5.4 @tarojs/components: 3.5.4 => 3.5.4 @tarojs/helper: 3.5.4 => 3.5.4 @tarojs/plugin-framework-react: 3.5.4 => 3.5.4 @tarojs/plugin-platform-alipay: 3.5.4 => 3.5.4 @tarojs/plugin-platform-jd: 3.5.4 => 3.5.4 @tarojs/plugin-platform-qq: 3.5.4 => 3.5.4 @tarojs/plugin-platform-swan: 3.5.4 => 3.5.4 @tarojs/plugin-platform-tt: 3.5.4 => 3.5.4 @tarojs/plugin-platform-weapp: 3.5.4 => 3.5.4 @tarojs/react: 3.5.4 => 3.5.4 @tarojs/rn-runner: 3.5.4 => 3.5.4 @tarojs/router: 3.5.4 => 3.5.4 @tarojs/runtime: 3.5.4 => 3.5.4 @tarojs/shared: 3.5.4 => 3.5.4 @tarojs/taro: 3.5.4 => 3.5.4 @tarojs/taro-h5: 3.5.4 => 3.5.4 @tarojs/taro-rn: 3.5.4 => 3.5.4 @tarojs/webpack5-runner: 3.5.4 => 3.5.4 babel-preset-taro: 3.5.4 => 3.5.4 eslint-config-taro: 3.5.4 => 3.5.4 expo: ~46.0.1 => 46.0.9 react: ^17.0.2 => 17.0.2 react-native: ^0.68.2 => 0.68.3 taro-ui: ^3.1.0.beta.3 => 3.1.0-beta.3
The text was updated successfully, but these errors were encountered:
目前扫描项目依赖时,并不会根据不同端做筛查,可以先手动 exclude 相关依赖
Sorry, something went wrong.
exclude
了解了,感谢。
fix(prebundle): 支持根据 define 参数去除不必要的依赖 fix #12385
7b8a2da
1a48b93
fix(prebundle): 支持根据 define 参数去除不必要的依赖 fix NervJS#12385
38e19d9
ZakaryCode
Successfully merging a pull request may close this issue.
相关平台
H5
浏览器版本: chrome最新版
使用框架: React
复现步骤
从3.5.2升级到3.5.4
项目定义了跨端组件,里面有用到rn的包里面的类型定义,dev:h5的时候 prebundle提示包含了react native 然后开始报错;H5报错,具体错误如下图。
目前解决方式:
在3.5.4关闭prebundle特性后,报错消失。
期望结果
正常构建(下图为3.5.2版本输出)
实际结果
异常构建
环境信息
The text was updated successfully, but these errors were encountered: