summaryrefslogtreecommitdiff
path: root/.babelrc
blob: 83172a4775321aff6776367231d13ee053aa0fbb (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
{
  "presets": [
    [
      "@babel/preset-env",
      {
        "modules": false,
        "targets": {
          "ie": "11"
        }
      }
    ]
  ],
  "plugins": [
    "@babel/plugin-syntax-dynamic-import",
    "@babel/plugin-syntax-import-meta",
    "@babel/plugin-proposal-class-properties",
    "@babel/plugin-proposal-json-strings"
  ],
  "env": {
    "karma": {
      "plugins": ["babel-plugin-rewire"]
    },
    "coverage": {
      "plugins": [
        [
          "babel-plugin-istanbul",
          {
            "exclude": ["spec/javascripts/**/*", "app/assets/javascripts/locale/**/app.js"]
          }
        ],
        "babel-plugin-rewire"
      ]
    }
  }
}