@bubblydoo/uxp-polyfills
v0.0.6
Published
[](https://www.npmjs.com/package/@bubblydoo/uxp-polyfills)
Keywords
Readme
UXP Polyfills
This package contains polyfills that are convenient and sometimes needed for building UXP extensions.
- 'matchmedia-polyfill' is a polyfill for the
matchMediaAPI, which is not available in the UXP API but needed for React. - 'mutationobserver-shim' is a polyfill for the
MutationObserverAPI, which is not available in the UXP API but needed for React. - 'performance-measure' is a polyfill for the
performance.measureAPI, which is not available in the UXP API but needed for React dev mode. - 'core-js/actual/error' is a polyfill for the
Error.causeproperty, which is very useful for error handling.
Implementation details
They are all bundled into a single file, because some of these (e.g. matchmedia-polyfill) has been patched with pnpm.
