We replace declare _lifecycleEnd?: number with _lifecycleEnd = 0 to fix the SyntaxError thrown by Babel in all three e2e test environments. The declare keyword was introduced as a bundle-size optimization, but Babel's @babel/plugin-transform-typescript cannot process declare class fields when class property transforms run in a conflicting order. Both 0 and undefined are falsy, so the runtime semantics โ zero meaning the full branch participates in lifecycle callbacks โ are preserved identically.
Failed after
SSheraffView latestperf(router-core): reduce fallback lifecycle bundle overhead
816583e6989Open on GitHubThis code change can't be applied
A fix is available, but it can't be applied automatically because the branch is outdated. Please sync the branch, then apply the fix locally below.