Open brendonjohn opened 2 years ago
Hey there, I love the library.
From testing a library in stripped-down environments I've realised react-shadow assumes that global is available for accessing the global this value.
global
this
Do you have a suggested polyfill for making global available?
Alternatively, would you accept a PR to replace the use of global with globalThis? I'm happy to send the PR through.
globalThis
https://caniuse.com/mdn-javascript_builtins_globalthis
This should be significantly better without needing to make an invasive change.
🙇
I see this has been resolved here: https://github.com/Wildhoney/ReactShadow/pull/121
I think is a great experience
Hey there, I love the library.
From testing a library in stripped-down environments I've realised react-shadow assumes that
global
is available for accessing the globalthis
value.Do you have a suggested polyfill for making
global
available?Alternatively, would you accept a PR to replace the use of
global
withglobalThis
? I'm happy to send the PR through.https://caniuse.com/mdn-javascript_builtins_globalthis
This should be significantly better without needing to make an invasive change.
🙇