Skip to content

ricardomartins-kununu/babel-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babel-compiler

Compile code using babel

installation

  • clone the repo
  • install dependencies by running npm install
  • add the code you need to convert into src/indes.js
  • run npm start on the console
  • the output should be stored into dist/indes.js

Example (convert es6 -> es5):

code to covert placed into src/index.js

const testFunction = (arg)=> arg
console.log(testFunction)

coverted code placed into dist/index.js

"use strict";
var testFunction = function testFunction(arg) {
  return arg;
};
console.log(testFunction);

About

Compile code using babel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published