Failed after

SSheraff
View latest

perf(router-core): reduce fallback lifecycle bundle overhead

816583e6989Open on GitHub

Self-Healing CI

Classification: Code change neededFix generatedVerified 3 tasks

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.

Commit"fix(router-core): use field initializer instead of declare for Babel"

1 file changed