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