.babelrc 493 Bytes
Newer Older
1
{
2
  "presets": [["latest", { "es2015": { "modules": false } }], "stage-2"],
3
  "env": {
4
    "karma": {
Mike Greiling's avatar
Mike Greiling committed
5 6
      "plugins": ["rewire"]
    },
7 8
    "coverage": {
      "plugins": [
9 10 11 12 13 14 15 16 17 18 19
        [
          "istanbul",
          {
            "exclude": ["spec/javascripts/**/*", "app/assets/javascripts/locale/**/app.js"]
          }
        ],
        [
          "transform-define",
          {
            "process.env.BABEL_ENV": "coverage"
          }
20 21
        ],
        "rewire"
22 23 24 25
      ]
    }
  }
}