aboutsummaryrefslogtreecommitdiffstats
path: root/.babelrc
blob: 6966105e4f3c11f3ff2baae0c928d62cc975a02c (plain) (blame)
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
47
48
49
50
51
52
53
{
  "presets": [
    ["env", {
      "modules": false,
      "useBuiltIn": true,
      "targets": {
        "browsers": [
          "> 1%",
          "last 2 versions",
          "not ie <= 11",
          "ios 9",
          "not ie_mob 10",
          "not and_uc <= 11.4",
          "not bb < 10",
          "not op_mob <= 12",
          "not Android < 4.4"
        ]
      }
    }],
    "react",
    "stage-0",
    "flow"
  ],
  "env": {
    "production": {
      "only": [
        "app"
      ],
      "plugins": [
        "transform-react-remove-prop-types",
        "transform-react-constant-elements",
        "transform-react-inline-elements"
      ]
    },
    "test": {
      "plugins": [
        "transform-es2015-modules-commonjs",
        "dynamic-import-node"
      ]
    }
  },
  "plugins": [
    ["react-loadable/babel", {
      "webpack": true
    }],
    ["module-resolver", {
      "alias": {
        "@": "./app"
      }
    }],
    "polished"
  ]
}