babel js
Babel is a free and open-source JavaScript transcompiler
GitHub url: https://github.com/ksathiya88/babel-s...
1)Create a Project
npm –init
2)Install the necessary packages
npm install --save-dev @babel/core @babel/cli @babel/preset-envnpm install @babel/polyfill
3)Create a configuration file
.babelrc
4)Add to the script in package.json
"scripts": {"babel": "./node_modules/.bin/babel src -d dist"},
5)Run Babel
npm run babel