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
The component runs with real shadow-dom in Chrome and polyfilled in IE11 (no style isolation, of course) using the shadow-dom polyfill when I change the Svelte compiler output above to the following, where I use the HTMLElement.call(this) return value:
Can we adjust the Svelte custom-component compiler so that it uses the return value of HTMLElement.call() as shown above?
The shadow-dom polyfill by @tuespetre also comes with a shim that allows to run the ES5 transpiled code in Chrome, where there is native shadow-dom support. I.e. people can either choose to transpile classes and use the polyfill or not transpile classes and work with modern browsers only.
The text was updated successfully, but these errors were encountered:
When I transpile my svelte component with buble to run it in IE11, the following will be generated:
The component runs with real shadow-dom in Chrome and polyfilled in IE11 (no style isolation, of course) using the shadow-dom polyfill when I change the Svelte compiler output above to the following, where I use the HTMLElement.call(this) return value:
See also tuespetre/shadow-dom#7
Can we adjust the Svelte custom-component compiler so that it uses the return value of
HTMLElement.call()
as shown above?The shadow-dom polyfill by @tuespetre also comes with a shim that allows to run the ES5 transpiled code in Chrome, where there is native shadow-dom support. I.e. people can either choose to transpile classes and use the polyfill or not transpile classes and work with modern browsers only.
The text was updated successfully, but these errors were encountered: