Skip to content

Conversation

qnnp-me
Copy link
Contributor

@qnnp-me qnnp-me commented Jan 21, 2024

build swan 百度小程序的时候出现页面渲染只有 page > template 两个节点
根据 build 后的模板文件可知是因为丢了 tmpl_0_2, tmpl_0_7 两个模板造成的
在 swan 插件源码中发现是被主动删掉了,但是没有处理删掉后造成的影响

这个 PR 是什么类型? (至少选择一个)

  • 错误修复(Bugfix) issue: fix #
  • 新增:为生成配置文件方法添加适配器参数, 用于适配插件可以根据需要修改生成配置文件,原来如百度小程序的源码的目录属性 smartProgramRoot 在生成时是不支持自动处理的
  • 优化:优化百度小程序生成配置文件方法,使得配置文件的 smartProgramRoot 属性在生成的 dist 中为正确的 ./

这个 PR 涉及以下平台:

  • 百度小程序

fix #14945

Copy link

taro-bot2 bot commented Jan 21, 2024

欢迎提交 PR~ Taro 非常感谢您对开源事业做出的贡献!🌷🌷🌷

一般 PR 会在一到两周内进行 review,成功合入后会随下一个版本进行发布。

Review 需要耗费大量时间,所以请遵循以下规范,协助我们提高 review 效率🙏🙏🙏

  1. 详细介绍 PR 的背景(非常重要,例如解决了什么问题,该问题如何复现等)
  2. 确保 CI 顺利运行。
  3. 最好能提供对应的测试用例。

为了更好地进行沟通,请加入 Taro 开发者微信群:

@qnnp-me qnnp-me changed the title 修复百度小程序不渲染问题 修复百度小程序安装 html 插件时不渲染问题,优化其他问题 Jan 22, 2024
@qnnp-me
Copy link
Contributor Author

qnnp-me commented Jan 31, 2024

已rebase

@Chen-jj Chen-jj added this to the 3.6.25 milestone Mar 13, 2024
distProjectConfig = Object.assign({}, origProjectConfig, { miniprogramRoot: './' })
distProjectConfig = Object.assign({}, origProjectConfig)
if (distProjectConfig.miniprogramRoot) {
distProjectConfig.miniprogramRoot = './'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不是很理解在这里许改 config 的意义,generateProjectConfig 做的事情好像就是把你原本的 config 放到 dist 目录下而已,直接在原文件加上这个字段的话 是不是也有一样的效果呢?


delete result['pure-view']
delete result['static-view']

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这么改好像会导致出现之前的一个问题 :#6015

Copy link
Contributor

@ZEJIA-LIU ZEJIA-LIU Mar 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#15337 这个 pr 解决了 #14945 的问题,可以帮忙看看是否能够满足

@ZEJIA-LIU ZEJIA-LIU removed this from the 3.6.25 milestone Mar 15, 2024
@ZEJIA-LIU ZEJIA-LIU changed the base branch from main to 3.x July 16, 2024 06:54
@ZEJIA-LIU ZEJIA-LIU deleted the branch NervJS:3.x July 16, 2024 07:15
@ZEJIA-LIU ZEJIA-LIU closed this Jul 16, 2024
@ZEJIA-LIU ZEJIA-LIU reopened this Jul 16, 2024
holyfata and others added 29 commits August 8, 2025 14:25
* feat: 支持readonly属性

* feat: 添加测试项目

* feat: 添加测试项目

* feat: 成功测试vue3+taro+h5

* feat: 修复类型问题

* feat: 同步viite类型

---------

Co-authored-by: heyongqi10 <heyongqi10@jd.com>
* test(@tarojs/extend): jest to vitest

* test(@tarojs/shared): trigger ci
Co-authored-by: Amumu <yoyo837@hotmail.com>
* test: jest to vitest

* chore: reinstall
* test(babel-plugin-transform-taroapi): jest to vitest

* fix: script

---------

Co-authored-by: Amumu <yoyo837@hotmail.com>
* refactor: type code optimization

* feat: update code

* feat: update code
* feat: h5中编译器为vite时支持配置vite下所有server options

* chore: update taro-vite-runner

* feat: vite2

* fix: 更正ServerOptions类型使用

* fix: 更正ServerOptions类型使用
…收集依赖 (NervJS#18259)

* fix(vite): use await collected

* fix(vite): 修复 harmony 部分自定义组件 emit 时机问题

* fix(vite): harmony extra comps repeat

* fix(vite): harmony custom routes origin name error

* feat: 修改harmony生成的目录路径以适配bundle场景

* chore(release): publish 4.1.5-alpha.1 --tag=alpha

* fix(harmony): 修复 ohpm 不支持的资源文件名

* chore(release): publish 4.1.5-alpha.2 --tag=alpha

---------

Co-authored-by: ZakaryCode <zakarycode@gmail.com>
Co-authored-by: mayintao3 <mayintao3@jd.com>
Co-authored-by: zhutianjian3 <zhutianjian@jd.com>
* feat: 增加refresher空白导出以适配ui

* chore(release): publish 4.1.5-beta.1 --tag=beta

* feat: 暂时屏蔽不支持的关闭动画,增加英文版配置

* chore(release): publish 4.1.5-beta.2 --tag=beta

* feat: 统一list组件导出方式

* chore(release): publish 4.1.5-beta.3 --tag=beta

* fix: 修复Picker组件在Dynamic端出现的异常scrollTop不存在问题

* chore(release): publish 4.1.5-beta.4 --tag=beta

* chore(release): publish 4.1.5-beta.6 --tag=beta

* fix: 修复h5端会启动小程序解析插件的问题

* fix: 修改picker日期选择器默认时间区间

* fix: 修改默认按钮样式,增加color参数供给管理确定按钮、取消按钮、选项字体默认颜色、选项字体选中颜色四个参数,剔除冗余style参数

* chore(release): publish 4.1.5-beta.7 --tag=beta

* chore: 还原版本号解决冲突

---------

Co-authored-by: zhuqingan.3 <zhuqingan.3@jd.com>
Co-authored-by: vasily <chenchiajun@gmail.com>
* fix: 修复windows开发环境Taro对象上等方法不可用

* fix:保持原有

* fix: 修复windows开发环境Taro对象上等方法不可用
Co-authored-by: chenjiajun79 <chenjiajun79@jd.com>
* feat: 增加支付宝小程序 Page.events useKeyboardHeight

* test: 在多个快照测试中添加 useKeyboardHeight 函数

* fix: 更新 PageInstance 接口,添加 events 属性以支持支付宝小程序事件
…st (NervJS#18146)

* test(babel-plugin-transform-react-jsx-to-rn-stylesheet): jest to vitest

* fix: type err

* fix: type err

* chore: full build [no ci]

* fix: type err

* fix: null case

* test: root vitest

* fix: typo

* chore: 限制CI时长为30min

* chore: aggregate output

* chore: fail fast

---------

Co-authored-by: Amumu <yoyo837@hotmail.com>
…rvJS#18291)

* fix(vite-runner): correct default value of vite option `fs.allow`

* style(vite-runner): fix style error

---------

Co-authored-by: Amumu <yoyo837@hotmail.com>
* fix(vite): use await collected

* fix(vite): 修复 harmony 部分自定义组件 emit 时机问题

* fix(vite): harmony extra comps repeat

* fix(vite): harmony custom routes origin name error

* feat: 修改harmony生成的目录路径以适配bundle场景

* chore(release): publish 4.1.5-alpha.1 --tag=alpha

* fix(harmony): 修复 ohpm 不支持的资源文件名

* chore(release): publish 4.1.5-alpha.2 --tag=alpha

* revert(harmony): 还原 inject 插件对平台基类的错误引用

* fix(harmony): 修复 filter 错误匹配

* fix(harmony): img ext

---------

Co-authored-by: mayintao3 <mayintao3@jd.com>
Co-authored-by: zhutianjian3 <zhutianjian@jd.com>
…“taroize is not a function” (NervJS#18327) (NervJS#18379)

* fix(@tarojs/cli-convertor): 修复“taroize is not a function” (NervJS#18327)

* fix(@tarojs/cli-convertor): 修复“taroize is not a function” (NervJS#18327) --updateSnapshot
NervJS#18373)

* fix: 当设置babel 的targets为ios10以后,class不转换后导致onShareAppMessage和onShareTimeline检测失效

* fix: eslint check

---------

Co-authored-by: moseszhou <zhoujian@myai.tech>
* feat: 给image增加lego模式,Stencil及React版本添均加

* chore(release): publish 4.1.6-beta.1 --tag=beta

* chore(release): publish 4.1.7-beta.0 --tag=beta

* feat(taro-components-react): 新增 Button 组件对 TD 端的支持

- 支持 size 属性,提供多种尺寸选项
- 支持 type 属性,提供不同按钮类型
- 支持 plain 属性,实现朴素按钮样式
- 支持 disabled 属性,控制按钮禁用状态
- 支持 onClick 事件处理

* chore(release): publish 4.1.7-alpha.0 --tag=alpha

* feat: lego模式增加lang参数

* chore(release): publish 4.1.7-beta.1 --tag=beta

* feat: 删除旧版为端侧增加的打包配置,新增original打包配置

* chore(release): publish 4.1.7-beta.2 --tag=beta

* fix: 修复依赖

* fix: 还原版本号

* chore(release): publish 4.1.7-beta.2 --tag=beta

* fix: 修复版本异常

* chore(release): publish 4.1.7-beta.2 --tag=beta

* fix: 修复依赖打包异常

* chore(release): publish 4.1.7-beta.2 --tag=beta

* fix: 格式化修改

* fix: 修复cjs中引入的样式失效的问题

* chore(release): publish 4.1.7-beta.3 --tag=beta

* fix: 修改original产物

* chore(release): publish 4.1.7-beta.4 --tag=beta

* fix: 修复依赖问题

* fix: 回退版本

* chore(release): publish 4.1.7-beta.4 --tag=beta

* fix: 修复版本号

* fix: 还原配置文件

* fix: 修复异常依赖问题

* fix: 修改eslint问题

* 修改依赖版本

* fix: 修改依赖

---------

Co-authored-by: zhuqingan.3 <zhuqingan.3@jd.com>
Co-authored-by: zhianziqiyan <978447795@qq.com>
Co-authored-by: mayintao3 <mayintao3@jd.com>
Co-authored-by: vasily <chenchiajun@gmail.com>
Co-authored-by: chenjiajun79 <chenjiajun79@jd.com>
Copy link

coderabbitai bot commented Oct 5, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

百度小程序的适配问题