complie a fie babel code example
Example 1: install babel command line
npm i -D @babel/core @babel/preset-env babel-loader
Example 2: babel cmd
babel src\app.js --out-file=public\scripts\app.js --presets=env,react --watch
npm i -D @babel/core @babel/preset-env babel-loader
babel src\app.js --out-file=public\scripts\app.js --presets=env,react --watch