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
I've created a couple of custom elements in Svelte and it looks really great, but one feature that is missing is that there is no way of extending native HTML elements (eg. link).
One of the use-cases where I want to use these is creating a couple of extended elements, which will have css and some minor JS functionality implemented additionally to the standard ones. I cannot use pure custom elements, as it would be an overkill to integrate them in different frameworks like Vue, React, Angular etc. Not mentioning that it would make the developers to write a lot of boilerplate code just to communicate with custom-elements (getting the value, firing validation and so on).
When trying to build something like the following:
and running rollup -c, Svelte throws this error: (svelte plugin) ValidationError: Default export must be an object literal;
It would be great if Svelte supported something like this.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I've created a couple of custom elements in Svelte and it looks really great, but one feature that is missing is that there is no way of extending native HTML elements (eg. link).
One of the use-cases where I want to use these is creating a couple of extended elements, which will have css and some minor JS functionality implemented additionally to the standard ones. I cannot use pure custom elements, as it would be an overkill to integrate them in different frameworks like Vue, React, Angular etc. Not mentioning that it would make the developers to write a lot of boilerplate code just to communicate with custom-elements (getting the value, firing validation and so on).
When trying to build something like the following:
and running
rollup -c
, Svelte throws this error:(svelte plugin) ValidationError: Default export must be an object literal
;It would be great if Svelte supported something like this.
The text was updated successfully, but these errors were encountered: