Babel Env preset

Asked by At

I building a react app and I use webpack with Babel loader. In package json, I define babel properties and env but I dont undestand what env does?

What is the default configuration of env? How does {"env":{"target":"current"}} defer?

package.json

{
  "name": "servernodejs",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "directories": {
    "lib": "lib"
  },
  "babel": {
    "presets": [
      "react",
      "env", //{"env":{"target":"current"}}
      "stage-2"
    ]
  },

}

0 Answers