Generating Custom Babel Plugin

by

Jaya Krishna 🏔 🏍 💻 🏸 🎧

@askjkrishna
imageThe compiler of next generation
imageimage

Abstract Syntax Tree (AST)

AST Visual

AST Explorer Tool

Babylon

Babel Traverse

Babel Template ☮️️ (The Saviour)

Babel Generator

🔗

Input

console.log('sdkjfnskdnf');

function demo() {
    console.log('sdfnsdnfkjsdf');
}

() => {
    console.log(' this is arrow function');
}

abc.console();

log.console();

Output

"use strict";

function demo() {}

(function () {});

abc.console();
log.console();

Online Babel Compiler

Codemod !!

📖

Compiling vs Polyfilling

🔗

Thank You 😃