TopicsBabel.jsThe Pattern Matching ProposalIntroduction to Babel

Learning Babel

Follow the tutorial https://github.com/ULL-ESIT-PL/babel-learning to learn how to create a Babel plugin.

TC39

See section TC39 for a description of the TC39 and the process followed by a proposal to be accepted as a standard.

The forum at https://es.discourse.group/ is the official discussion forum for TC39. Join the https://es.discourse.group and have a look.

The TC39 Proposal Pattern Matching and plugins

See section Pattern Matching for a description of the proposal and the 0-syntax Babel plugin https://github.com/iptop/babel-plugin-proposal-pattern-matching.

The Task

Following the chapter at https://github.com/ULL-ESIT-PL/babel-learning/tree/main/src/awesome/tc39-pattern-matching re-create your own Babel plugin that implements as much as you can of the TC39 pattern matching proposal.

Videos

2025/03/31

Functions on the left side of an assignment. Introduction to Babel

2025/04/02

Babel templates. Scope in Babel

Videos about Babel

  1. Romulo Cintra introduces the way the TC39 works.
  1. Henry Zhu: “So how does Babel even work.”
  2. Ross Kirsling, member of the TC39 committee, describes in JSConfJP how the optional chaining operator was added to JS from the specification to the implementation, including bytecode generation. It is a generic talk, not a Babel talk.
  3. Nicolo Ribaudo, Babel developer, makes a “demo” showing how to write a Babel plugin to implement the optional chaining.
  4. The last one is in Chinese. It is a talk by iptop, the author of the pattern-matching plugin.





References