Repository navigation
Conversation
Amour1688
force-pushed
the
feat/rspack-runner
branch
from
November 28, 2026 13:02
e960463 to
c0d2b93
Compare
Single-Dancer
force-pushed
the
refactor/runner-shared-bundler
branch
from
November 28, 2026 13:50
7a54de6 to
24804f5
Compare
Amour1688
force-pushed
the
feat/rspack-runner
branch
2 times, most recently
from
November 28, 2026 14:39
caef36f to
7225680
Compare
…ils (NervJS#19696) * refactor(runner): extract shared bundler layer into @tarojs/runner-utils * refactor(runner): preserve MiniSplitChunksPlugin hooks and declare tapable in tests
* fix(components): report elapsed audio playback time * test(components): provide audio event source in Stencil mock
* feat(h5): support hideHomeButton on H5 Taro.hideHomeButton was a temporarilyNotSupport stub on H5, although the H5 navigation bar rendered by @tarojs/router shows a "back to home" button when a page other than the home page is opened as the only page, just like mini programs do. Pages could therefore not hide that button. - @tarojs/router: add hideNavigationBarHomeButton, which triggers the __taroH5HideHomeButton event like the other navigation bar helpers. NavigationBarHandler records the hidden state in its per-page cache and setFnBtnState shows no button instead of the home button for that page. The cache entry is created on demand, because pages usually call the API in onShow, which runs before the navigation bar is loaded for the page, so the following load() does not show the button again. The back button and other pages are not affected. - @tarojs/taro-h5: implement hideHomeButton on top of the router helper. - types: mark hideHomeButton as supported on h5. Add router unit tests for hiding the button, hiding it before the page is loaded, keeping the back button and scoping the state to the page, and an H5 test for the API callbacks and the triggered event. * test(router): cover hidden home button after navigating away and back Also document that the hidden state is cached per route. * fix(router): scope hideHomeButton to the page instance on H5 * fix(router): ignore hideHomeButton calls made while a page is unloading A page is popped from the stack before its onUnload runs, so a hideHomeButton call from onUnload landed on the destination page. Skip the call while unloading, and make the navigate-back test only hide the button on the first onShow. * fix(router): ignore deferred hideHomeButton calls from a popped page Keep ignoring hideHomeButton until the macrotask after onUnload, so calls deferred through a microtask can no longer hide the destination page's home button. onShow of the page shown right after an unload is exempt. Co-authored-by: dhananjay6561 <133662894+dhananjay6561@users.noreply.github.com> Signed-off-by: Asish Kumar <officialasishkumar@gmail.com> * fix(router): attribute hideHomeButton calls to the page that made them Compare Current.page with the stack top instead of ignoring every call for a macrotask after onUnload. A popped page's call deferred by a microtask now runs while Current.page still points at it, and the shown page's own onShow call is no longer rejected. Tests use the real createPageConfig, with and without animation. * docs(types): note onShow usage and delayed-call scope for H5 hideHomeButton --------- Signed-off-by: Asish Kumar <officialasishkumar@gmail.com> Co-authored-by: dhananjay6561 <133662894+dhananjay6561@users.noreply.github.com>
Amour1688
force-pushed
the
feat/rspack-runner
branch
from
November 29, 2026 14:10
7225680 to
f3805bd
Compare
Owner
Author
|
Closing preview PR: prerequisite NervJS#19696 is merged and NervJS#19694 is now rebased directly onto upstream/main. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
增量统计(基于
@rspack/core@2.3.4)+6,350 / -921行);不含pnpm-lock.yaml为 64 个文件(+5,533 / -692行)packages/taro-rspack-runner/src/:10 个核心文件、1,070 行源码(较初版 1,741 行精简 -38.5%,仅保留 Rspack 2.3.4 底层不兼容的薄适配)packages/taro-rspack-runner/tests/:4 个测试文件、2,884 行测试(34/34 Vitest 全绿),覆盖:independent: true独立分包、SubPackageIndiePlugin(newBlended: true)BuildNativePlugin(isBuildNativeComp: true)、小程序原生插件(isBuildPlugin: true)、Prerender、Skyline 模式、modifyBuildAssets/addChunkPages钩子与StaticMiniSplitChunksPlugin重建隔离defineAppConfig/definePageConfig)、CustomWrapper与第三方原生组件 props、按需moduleGraph.getUsedExports(兼容 RspackinlineExports)、TS 仅类型重导出(reexportExportsPresence: false)、copy/字符串与 RegExpalias/defineConstants/Less/Stylus/CSS Modulesglobal模式、SWC +css-minimizer-webpack-plugin.wxss压缩packages/taro-runner-utils/:24 个文件(+1,274 / -73行)— 沉淀共享组件 AST 收集器、真实小程序模板、StaticMiniSplitChunksPlugin、独立分包与BuildNativePlugin基类、Chunk/Prerender 兼容修复与配置/Runner 默认值packages/taro-webpack5-runner/:8 个文件(+101 / -608行,净删 -507 行,根仓库 22/22 Jest 套件、153/153 用例、97/97 快照全绿)+48 / -11行)AsyncSubPackagePlugin当前仍仅支持 webpack5(Rspack 2.3.4 暂不支持optimizeChunks、可变chunk.name、run阶段动态修改splitChunks及afterResolvecreateData.loaders)。