mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-29 04:50:05 +00:00
* Remove IE polyfills and special casing * dashboard: remove `resize-observer-polyfill` * deps: remove url-parse to use global `URL` instead * Update documentation for browser support * Add a migration guide * Update e2e test platforms * Remove polyfills from examples and add those missing in CDN bundle * Use Node.js v16.x on CI because of `AbortController` * Update bundle builder to produce two builds: `uppy.js` without polyfills, `uppy.legacy.js` with polyfills. * Upgrade create-react-app deps * remove null coalescing operator as it's not supported by the build chain * disable Safari testing (for now) Co-authored-by: Renée Kooi <renee@kooi.me>
15 lines
530 B
JavaScript
15 lines
530 B
JavaScript
require('es6-promise/auto')
|
|
require('whatwg-fetch')
|
|
require('abortcontroller-polyfill/dist/polyfill-patch-fetch')
|
|
// Order matters: AbortController needs fetch which needs Promise.
|
|
|
|
const mathLog2 = require('math-log2')
|
|
require('md-gum-polyfill')
|
|
const ResizeObserver = require('resize-observer-polyfill')
|
|
require('symbol-es6')
|
|
require('url-polyfill')
|
|
|
|
if (typeof Math.log2 !== 'function') Math.log2 = mathLog2
|
|
if (typeof window.ResizeObserver !== 'function') window.ResizeObserver = ResizeObserver
|
|
|
|
module.exports = require('.')
|