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'm attempting to render DSD for web components on the server side. It's difficult to support scoped elements, however, because the polyfill is not server-friendly.
The polyfill must be statically imported before my code; conditionally loading the polyfill does not work.
Example
Simply import the library and launch the script using Node.
There's currently no platform support for scoped custom elements in DSD. You'd have to use a polyfilled version of DSD for this to work. Because of this, it seems like there's really limited value in making the polyfill work in Node at the moment.
However, if you just want it to not produce an error, this seems reasonable and we'd welcome a PR for this.
Description
I'm attempting to render DSD for web components on the server side. It's difficult to support scoped elements, however, because the polyfill is not server-friendly.
The polyfill must be statically imported before my code; conditionally loading the polyfill does not work.
Example
Simply import the library and launch the script using Node.
Expected behavior
No error should be thrown. Script should be ignored on the server.
Actual behavior
Version
0.0.9
The text was updated successfully, but these errors were encountered: