DEV Community

Discussion on: Running multiple versions of a Stencil Design System without conflicts

Collapse
 
zhoukekestar profile image
周柯柯

I'm wonder that if HTML support scopeDocument.define('foo-bar', ...) will be more elegant, something like shadow css for CSS and ESM for JS.

Collapse
 
sanderand profile image
Andre Sander

Scoped Custom Element Registries would be the proper way of dealing with redefining already registered tags. Some people are working on this, but this still seems to be far away from being production-ready.
github.com/justinfagnani/webcompon...