babel run certain function code example
Example 1: babel cmd
babel src\app.js --out-file=public\scripts\app.js --presets=env,react --watch
Example 2: what are the uses of babel js
npm install --save-dev @babel/core @babel/cli @babel/preset-env
npm install --save @babel/polyfill
Copy