ES6 + Babel

  • Create a new Empty web site in VS 2015
  • Delete the web.config file
  • Create 2 folders – src, lib, add the following test1.js file to src:
  • Install node.js
  • On the node.js command prompt (in the project directory): o npm init

     
  • Add the following command to the scripts section in package.json: o “build”:”babel src -d lib”
  • Create .babelrc file (note the leading dot)

  •  
  •  
  • Test your work