Where is the location of .babelrc file?

.babelrc is never auto created. You must go to the root directory of your project. Create a file – touch .babelrc, open the file and enter the babel settings here, then save. If you are following https://babeljs.io/blog/2015/10/31/setting-up-babel-6, Setting up Babel 6 and installed all the plugins and presets as stated, this may help.

{
  "presets": [
    "es2015",
    "env",
    "react",
    "stage-2"
  ]
},

{
  "plugins": [
    "transform-es2015-arrow-functions",
    "check-es2015-constants",
    "transform-es2015-block-scoping"
  ]
}

Leave a Comment

tech