Skip to content

Instantly share code, notes, and snippets.

@novalagung
Last active December 13, 2023 06:37
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save novalagung/ad6b5a3c74ed071af99242cae9c513ec to your computer and use it in GitHub Desktop.
Save novalagung/ad6b5a3c74ed071af99242cae9c513ec to your computer and use it in GitHub Desktop.

transpile es6 into es5 using babel cli.

first install required packages globally.

npm install -g @babel/core @babel/node @babel/preset-env @babel/cli

then use command below to perform transpilation.

babel --presets @babel/preset-env FILE_IN.js --out-file FILE_OUT.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment