browser-support.mdx 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ---
  2. sidebar_position: 7
  3. ---
  4. import Tabs from '@theme/Tabs';
  5. import TabItem from '@theme/TabItem';
  6. import UppyCdnExample from '/src/components/UppyCdnExample';
  7. # Supporting IE11
  8. We officially support recent versions of Chrome, Firefox, Safari and Edge.
  9. Internet Explorer is not officially supported, as in we don’t run tests for it,
  10. but you can be mostly confident it works with the right polyfills. But it does
  11. come with a risk of unexpected results in styling or functionality.
  12. ## Polyfills
  13. <Tabs>
  14. <TabItem value="npm" label="NPM" default>
  15. ```shell
  16. npm install core-js whatwg-fetch abortcontroller-polyfill md-gum-polyfill resize-observer-polyfill
  17. ```
  18. </TabItem>
  19. <TabItem value="yarn" label="Yarn">
  20. ```shell
  21. yarn add core-js whatwg-fetch abortcontroller-polyfill md-gum-polyfill resize-observer-polyfill
  22. ```
  23. </TabItem>
  24. </Tabs>
  25. ```js
  26. import 'core-js';
  27. import 'whatwg-fetch';
  28. import 'abortcontroller-polyfill/dist/polyfill-patch-fetch';
  29. // Order matters: AbortController needs fetch which needs Promise (provided by core-js).
  30. import 'md-gum-polyfill';
  31. import ResizeObserver from 'resize-observer-polyfill';
  32. window.ResizeObserver ??= ResizeObserver;
  33. export { default } from '@uppy/core';
  34. export * from '@uppy/core';
  35. ```