/Transpiling-ES6-Modules

In this article, we will use Babel to transpile ES6 code to ES5

Primary LanguageJavaScript

To run this sample open a command prompt and move to the folder containing this code. Run the following commands:

  • npm install
  • gulp transpile
  • lite-server (If you don't have lite-server installed, you can install it using the command npm install -g lite-server)

Open a browser and change URL to http://localhost:3000.