You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(repeater): use factory pattern for getSelection to survive Vite DCE
Vite dep optimizer sets moduleSideEffects: false for non-entry modules,
causing Rolldown to strip module-level side effects like property
assignments on exported objects.
Wrap the getSelection assignment in a factory function
(createBlockRepeaterWithSelection) called at module level — the factory
return value is assigned to an exported binding, so Rolldown must
preserve the entire function body including the render/form collection.
Also move render/form calls out of mockItems.map callback (which is
never called by NPI's children pattern) into the getSelection body.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments