{
  "presets": ["latest", "react"],
  "plugins": [
    "transform-object-rest-spread",
    "transform-class-properties",
    "transform-runtime"
  ],
  "env": {
    "test-build": {
      "plugins": ["istanbul"]
    },
    "test": {
      "presets": [
        // To transpile import statements into commonjs.
        // That's because Jest(runs in Node.js) don't know how to handle them.
        "es2015",
        // To let test apps(and Jest) to use Next's babel preset
        "./babel"
       ]
    }
  }
}
