mirror of
https://github.com/transloadit/uppy.git
synced 2026-01-23 18:35:54 +00:00
* main: (90 commits) crash if trying to set path to / (#5003) fix `super.toggleCheckbox` bug (#5004) @uppy/aws-s3-multipart: fix escaping issue with client signed request (#5006) add missing exports (#5009) @uppy/transloadit: migrate to TS (#4987) @uppy/utils: fix `RateLimitedQueue#wrapPromiseFunction` types (#5007) @uppy/golden-retriever: migrate to TS (#4989) Bump follow-redirects from 1.15.4 to 1.15.6 (#5002) meta: fix `resize-observer-polyfill` types (#4994) @uppy/core: various type fixes (#4995) @uppy/utils: fix `findAllDOMElements` type (#4997) @uppy/status-bar: fix `recoveredState` type (#4996) @uppy/utils: fix `AbortablePromise` type (#4988) Fix breadcrumbs (#4986) @uppy/drag-drop: refactor to TypeScript (#4983) @uppy/webcam: refactor to TypeScript (#4870) @uppy/url: migrate to TS (#4980) @uppy/zoom: refactor to TypeScript (#4979) @uppy/unsplash: refactor to TypeScript (#4979) @uppy/onedrive: refactor to TypeScript (#4979) ...
26 lines
717 B
JavaScript
26 lines
717 B
JavaScript
module.exports = (api) => {
|
|
const targets = {}
|
|
if (api.env('test')) {
|
|
targets.node = 'current'
|
|
}
|
|
|
|
return {
|
|
presets: [
|
|
['@babel/preset-env', {
|
|
include: [
|
|
'@babel/plugin-proposal-nullish-coalescing-operator',
|
|
'@babel/plugin-proposal-optional-chaining',
|
|
'@babel/plugin-proposal-numeric-separator',
|
|
],
|
|
loose: true,
|
|
targets,
|
|
useBuiltIns: false, // Don't add polyfills automatically.
|
|
modules: false,
|
|
}],
|
|
],
|
|
plugins: [
|
|
['@babel/plugin-transform-react-jsx', { pragma: 'h', pragmaFrag: 'Fragment' }],
|
|
process.env.NODE_ENV !== 'dev' && 'babel-plugin-inline-package-json',
|
|
].filter(Boolean),
|
|
}
|
|
}
|