Replies: 1 comment
-
|
Seems to not be as easy as |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For rapid development of web components, having Tailwind's Play CDN work in there would be really helpful.
Currently, the Play CDN only works in the light DOM.
The reason is that it puts its
MutationObserveron thedocument.documentElement, which is always the<html>element, even if the script is mounted inside a shadow root.The proper mounting point for the observer can be determined through
document.currentScript.getRootNode().If the thoughts in this issue sounds reasonable, I'd be happy to attach a PR.
Beta Was this translation helpful? Give feedback.
All reactions