Skip to content

fix: correct beforeleave event name casing when compiling to Alipay - #2548

Merged
hiyuki merged 8 commits into
masterfrom
fix-ali-prop-beforeleave
Aug 25, 2026
Merged

fix: correct beforeleave event name casing when compiling to Alipay#2548
hiyuki merged 8 commits into
masterfrom
fix-ali-prop-beforeleave

Conversation

@wangshunnn

@wangshunnn wangshunnn commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

说明

修复微信语法编译到支付宝小程序时,page-container 的 beforeleave 事件被错误转换为 onBeforeleave 的问题,确保最终输出为 onBeforeLeave,并补充回归测试。

支付宝小程序文档确认是 onBeforeLeave
image

验证

相关 ESLint 和 Jest 测试已通过。

@wangshunnn
wangshunnn marked this pull request as ready for review July 10, 2026 08:27
Comment thread packages/webpack-plugin/lib/platform/template/wx/index.js Outdated
@hiyuki
hiyuki merged commit a5b16fe into master Aug 25, 2026
6 checks passed
@hiyuki
hiyuki deleted the fix-ali-prop-beforeleave branch August 25, 2026 12:34
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.

2 participants