aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/.babelrc
blob: 2beb6e05efa79b934f64370e55c66ab580918e54 (plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
  "presets": [
    [
      "env",
      {
        "modules": false,
        "targets": {
          "browsers": [
            "last 3 Chrome versions",
            "last 3 Firefox versions",
            "last 3 Safari versions",
            "last 3 Edge versions",
            "IE 11"
          ]
        },
        "useBuiltIns": true,
        "exclude": [
          "es6.math.acosh",
          "es6.math.asinh",
          "es6.math.atanh",
          "es6.math.cbrt",
          "es6.math.clz32",
          "es6.math.cosh",
          "es6.math.expm1",
          "es6.math.fround",
          "es6.math.hypot",
          "es6.math.imul",
          "es6.math.log1p",
          "es6.math.log10",
          "es6.math.log2",
          "es6.math.sign",
          "es6.math.sinh",
          "es6.math.tanh",
          "es6.math.trunc",

          "es6.reflect.apply",
          "es6.reflect.construct",
          "es6.reflect.define-property",
          "es6.reflect.delete-property",
          "es6.reflect.get",
          "es6.reflect.get-own-property-descriptor",
          "es6.reflect.get-prototype-of",
          "es6.reflect.has",
          "es6.reflect.is-extensible",
          "es6.reflect.own-keys",
          "es6.reflect.prevent-extensions",
          "es6.reflect.set",
          "es6.reflect.set-prototype-of",

          "es6.set",
          "es6.symbol",

          "es6.typed.array-buffer",
          "es6.typed.data-view",
          "es6.typed.int8-array",
          "es6.typed.uint8-array",
          "es6.typed.uint8-clamped-array",
          "es6.typed.int16-array",
          "es6.typed.uint16-array",
          "es6.typed.int32-array",
          "es6.typed.uint32-array",
          "es6.typed.float32-array",
          "es6.typed.float64-array",

          "es6.weak-map",
          "es6.weak-set",

          "transform-regenerator"
        ]
      }
    ],
    "react"
  ],
  "plugins": [
    "transform-class-properties",
    // use built-in `Object.assign`
    ["transform-object-rest-spread", { "useBuiltIns": true }],
    "lodash"
  ],
  "env": {
    "production": {
      "plugins": ["syntax-dynamic-import", "transform-react-constant-elements"]
    },
    "development": {
      "plugins": ["syntax-dynamic-import", "transform-react-jsx-source", "transform-react-jsx-self"]
    },
    "test": {
      "plugins": [
        "transform-es2015-modules-commonjs",
        "dynamic-import-node",
        "transform-react-jsx-source",
        "transform-react-jsx-self"
      ]
    }
  },
  "ignore": ["**/libs/**"]
}