mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-21 09:18:45 +00:00
* Update eslint * Do eslint --fix * Do not access Object.prototype method 'hasOwnProperty' from target object * utils: add hasProperty * eslint --fix * Disable quote-props for locale files * add back quotes in locale files * revert locale files to state on master * Update react-scripts
22 lines
534 B
JavaScript
22 lines
534 B
JavaScript
module.exports = (api) => {
|
|
const targets = {}
|
|
if (api.env('test')) {
|
|
targets.node = 'current'
|
|
}
|
|
|
|
return {
|
|
presets: [
|
|
['@babel/preset-env', {
|
|
modules: false,
|
|
loose: true,
|
|
targets
|
|
}]
|
|
],
|
|
plugins: [
|
|
['@babel/plugin-proposal-class-properties', { loose: true }],
|
|
'@babel/plugin-transform-object-assign',
|
|
['@babel/plugin-transform-react-jsx', { pragma: 'h' }],
|
|
process.env.IS_RELEASE_BUILD && 'babel-plugin-inline-package-json'
|
|
].filter(Boolean)
|
|
}
|
|
}
|