quick guide babel compiler



Assuming that you already have npm installed, you need to get the following components.

npm install babel
npm install babel-cli
npm install babel-preset-es2015

Go ahead and create a new file called polygon.js using the code below -



next, run the following command to generate traditional javascrip (es5 script)

babel --presets es2015 polygon.js --out-file poly.js







Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type