StencilJS dist-custom-elements output target missing versioned registry entries for safe rollback after prop schema changes
0 reputation · 16 Mar 2026, 11:26 UTC
0 reputation · 16 Mar 2026, 11:26 UTC
The dist-custom-elements output target emits a single bundle per component and registers each custom element under a flat name in window.customElements. When a component's public API—props, events, or slots—changes in a breaking way, the new definition overwrites the previous one without any version identifier in the registry or the generated file names.
Consumers that have cached the earlier bundle or that rely on the prior prop types receive no build-time warning. At runtime they encounter mismatched property types or missing events, and a rollback requires manually redeploying the previous bundle and clearing every client cache. Stencil does not ship a schema registry, compatibility layer, or CI integration that verifies the rolled-back artifact matches the consumer's expected contract.
.d.ts files to make a mismatch detectable at load time?dist-custom-elements output unchanged for consumers while still providing rollback verification?A thoughtful contribution can make all the difference. Be the first to share one.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.