Closed Sebastien-Ahkrin closed 2 years ago
It works!
This does work - and is crucial for me to be able to use ReactShadow. Can this please get merged? We are using esbuild and I hit the same issue.
Better late than never — merged and released as 19.0.3
. Thanks guys!
Hello everyone 👋
I think i have found a bug with the application if i'm not using any tool like Webpack. With Webpack we can use the application normaly and the "global" under it will work :
But, if i'm using something else, like vite for example we cannot use the "global" variables ... So, i think we can use "globalThis" instead. It supported in most browser you can check the caniuse if wanted.
globalThis is supported the same as shadow dom.
Hope this will help you :) If you have any question, suggestion and other you can send to me a message here 👋