awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
kentcdodds avatar

kentcdodds/babel-plugin-macros

0
View on GitHub↗
2,635 stars·138 forks·JavaScript·MIT·12 viewsnpm.im/babel-plugin-macros↗

Babel Plugin Macros

Babel Plugin Macros is a framework for building compile-time code transformations that modify JavaScript and TypeScript source files during the build process. It enables developers to automate repetitive code generation tasks and execute custom logic without the overhead of writing and maintaining full-scale, complex compiler plugins.

The project distinguishes itself by using import-based discovery to trigger transformation modules, allowing developers to invoke specific logic directly through standard module imports. It provides a structured environment for managing macro execution sequences and ensures predictable behavior by wrapping build-time operations in synchronous execution blocks.

The framework supports the transformation of diverse syntax nodes, including function calls and tagged template literals, to facilitate automated code generation. It also features centralized configuration management, allowing settings to be defined in standard files to maintain consistency across build tasks. To assist in development, the system includes contextual error reporting that surfaces actionable feedback directly linked to source code references when transformations fail.

Features

  • Babel Macros - Provides a framework for building compile-time code transformations that modify source files during the build process.
  • Compile-Time Code Generation - Executes custom logic during the build process to modify source code structures before the final bundle is generated.
  • Build Error Reporters - Surfaces meaningful and actionable contextual feedback to developers when a transformation fails during the build process.
  • JavaScript and TypeScript Build Systems - Provides a system for executing custom logic and syntax transformations during the compilation phase of JavaScript and TypeScript applications.
  • Build-Time Source Transformations - Enables the definition of reusable modules that execute custom code transformations during the build process.
  • Build-Time Execution - Supports wrapping asynchronous logic in synchronous execution blocks to ensure correct build-time processing order.
  • Configuration Merging - Combines multiple configuration files into a unified registry to maintain consistent behavior across build tasks.
  • Import-Based Discovery Mechanisms - Identifies and triggers specific transformation modules by intercepting standard module imports during the static analysis phase.
  • Build-Time Configuration Managers - Provides centralized macro configuration management using standard files to ensure consistent behavior across the build process.
  • Error Contextualization - Wraps build-time errors with source location metadata to provide actionable feedback during code transformations.
  • Syntax Tree Transformers - Supports the transformation of diverse syntax nodes including function calls and tagged template literals to enable automated code generation.

Star history

Star history chart for kentcdodds/babel-plugin-macrosStar history chart for kentcdodds/babel-plugin-macros

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does kentcdodds/babel-plugin-macros do?

Babel Plugin Macros is a framework for building compile-time code transformations that modify JavaScript and TypeScript source files during the build process. It enables developers to automate repetitive code generation tasks and execute custom logic without the overhead of writing and maintaining full-scale, complex compiler plugins.

What are the main features of kentcdodds/babel-plugin-macros?

The main features of kentcdodds/babel-plugin-macros are: Babel Macros, Compile-Time Code Generation, Build Error Reporters, JavaScript and TypeScript Build Systems, Build-Time Source Transformations, Build-Time Execution, Configuration Merging, Import-Based Discovery Mechanisms.

What are some open-source alternatives to kentcdodds/babel-plugin-macros?

Open-source alternatives to kentcdodds/babel-plugin-macros include: ben-rogerson/twin.macro — twin.macro is a build-time style compiler and utility-first styling tool that converts Tailwind CSS utility classes… quarkusio/quarkus — Quarkus is a Kubernetes-native Java framework designed for building high-performance, memory-efficient applications.… dtolnay/syn — syn is a Rust syntax tree parser and token stream converter. It serves as a toolkit for procedural macro development,… nasa/fprime — F Prime is a component-based framework designed for the development and deployment of embedded and spaceflight… rust-lang/book — The Rust Programming Language Book is the official technical guide and educational resource for the Rust language. It… a-h/templ — Templ is a type-safe HTML templating engine and UI framework for Go. It provides a system for building reusable HTML…

Open-source alternatives to Babel Plugin Macros

Similar open-source projects, ranked by how many features they share with Babel Plugin Macros.
  • ben-rogerson/twin.macroben-rogerson avatar

    ben-rogerson/twin.macro

    8,030View on GitHub↗

    twin.macro is a build-time style compiler and utility-first styling tool that converts Tailwind CSS utility classes into optimized style objects for JavaScript styling libraries. It acts as an integration bridge, allowing developers to use Tailwind design tokens and utility classes within a component-based architecture. The project distinguishes itself by performing transformations during the compilation phase rather than at runtime. It maps utility strings to CSS-in-JS engines such as Emotion and Styled Components, resolving design tokens directly from a Tailwind configuration file to ensure

    TypeScriptbabelbabel-macrocss-in-js
    View on GitHub↗8,030
  • quarkusio/quarkusquarkusio avatar

    quarkusio/quarkus

    15,479View on GitHub↗

    Quarkus is a Kubernetes-native Java framework designed for building high-performance, memory-efficient applications. It utilizes ahead-of-time native compilation to transform Java code into standalone, optimized binaries that eliminate the need for a virtual machine, enabling rapid startup and reduced memory consumption. By performing code augmentation during the build phase, it shifts heavy processing tasks away from runtime, ensuring that applications are optimized for cloud-native environments. The framework distinguishes itself through a unified approach to reactive and imperative program

    Javacloud-nativehacktoberfestjava
    View on GitHub↗15,479
  • dtolnay/syndtolnay avatar

    dtolnay/syn

    3,292View on GitHub↗

    syn is a Rust syntax tree parser and token stream converter. It serves as a toolkit for procedural macro development, providing a framework to parse Rust source code into structured syntax trees for analysis and transformation. The project enables the manipulation of Rust abstract syntax trees through specialized visitor and folder patterns for traversing and mutating nodes. It provides a bidirectional mapping that allows developers to convert token streams into structured trees and print those trees back into tokens for code generation. The library covers a broad range of syntax analysis ca

    Rustproc-macro
    View on GitHub↗3,292
  • nasa/fprimenasa avatar

    nasa/fprime

    10,766View on GitHub↗

    F Prime is a component-based framework designed for the development and deployment of embedded and spaceflight software. It provides a modular architecture that decouples software logic from communication interfaces, allowing developers to define system structures through a domain-specific modeling language. This model-based approach enables automated code generation, ensuring consistency across complex system topologies while maintaining strict interface contracts between software modules. The framework distinguishes itself through its integrated build system and ground data operations suite

    C++componentscppembedded
    View on GitHub↗10,766
See all 30 alternatives to Babel Plugin Macros→

Curated searches featuring Babel Plugin Macros

Hand-picked collections where Babel Plugin Macros appears.
  • Compile time execution