Answers for "set up babel"

6

install babel command line

npm i -D @babel/core @babel/preset-env babel-loader
Posted by: Guest on May-12-2020
0

set up babel

"scripts": {
    "babel": "babel --presets es2015 js/main.js -o build/main.bundle.js",
    "start": "http-server"
},
Posted by: Guest on June-13-2021

Browse Popular Code Answers by Language