.babelrc 572 Bytes
Newer Older
1
{
2 3 4
  // Options: https://babeljs.io/docs/en/babel-preset-env#options

  // environment specified via BABEL_ENV env var
5 6 7
  "env": {
    "build": {
      "presets": [
8
        ["@babel/preset-env", {
9
          "modules": false,
10
          "targets": {
11
            "browsers": "last 1 versions, > 0.2%, not dead, current node, node 10, node 8"
12
          }
13 14
        }]
      ],
15
      "plugins": []
16
    },
17

18 19
    "test": {
      "presets": [
20
        ["@babel/preset-env", {
21 22 23 24
          "modules": "commonjs"
        }]
      ],
      "plugins": [
25
        "istanbul"
26 27 28
      ]
    }
  }
29
}