forked from Deckstar/mui-file-dropzone
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.babelrc.js
46 lines (46 loc) · 1008 Bytes
/
.babelrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
module.exports = {
presets: [
[
'@babel/preset-env',
{
modules: false,
},
],
'@babel/preset-react',
],
plugins: [
'babel-plugin-optimize-clsx',
[
'@babel/plugin-proposal-class-properties',
{
loose: true,
},
],
[
'@babel/plugin-proposal-object-rest-spread',
{
loose: true,
},
],
// any package needs to declare 7.4.4 as a runtime dependency. default is ^7.0.0
[
'@babel/plugin-transform-runtime',
{
version: '^7.4.4',
},
],
// for IE 11 support
'@babel/plugin-transform-object-assign',
// material-ui 'productionPlugins'
'@babel/plugin-transform-react-constant-elements',
'babel-plugin-transform-dev-warning',
[
'babel-plugin-transform-react-remove-prop-types',
{
mode: 'unsafe-wrap',
},
],
// END material-ui 'productionPlugins'
],
ignore: [/@babel[\\|/]runtime/], // Fix a Windows issue.
};