ASP.NET Core by Patrik

Install Babel

Babel is a transpiler. The transpiler transforms ES6 code to use ES5 syntax that older browsers can understand. While Babel itself is very feature-rich and can be used independently, for our purposes, we can use the corresponding babel “loaders” to do the job.

Before we can use any loaders, we need first to install them. For our purpose, we will have to install the relevant babel loaders. Use the following command to install the babel loaders and the “presets”.

npm install "babel-loader" @babel/core @babel/preset-env --save-dev

If the command ran successfully, these loaders would be installed in the node_modules folder and the package.json would be modified.

Comments

Leave a Comment

All fields are required. Your email address will not be published.