{"library":"babel-plugin-macros","type":"library","category":null,"description":"babel-plugin-macros is a Babel plugin that enables the creation of compile-time code transformations through a standard, convention-based interface, eliminating the need for users to configure individual Babel plugins for each library that offers such optimizations. It allows libraries to provide compile-time benefits (like CSS-in-JS style extraction or GraphQL fragment compilation) by detecting imports ending with `.macro` and processing them. The current stable version is 3.1.0, released in May 2021. While not frequently updated, it remains a foundational tool, notably integrated into popular frameworks like Create React App. Its key differentiator is simplifying the developer experience by centralizing build-time transformations under a single Babel plugin configuration, making compile-time optimizations more accessible and easier to manage.","language":"javascript","status":"maintenance","version":"3.1.0","tags":["javascript","babel-plugin","macros","macro","babel-macro","babel-plugin-macro","babel-macros","babel-plugin-macros"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-macros","imports":["import MyMacro from './path/to/my.macro';","import { createMacro } from 'babel-plugin-macros';","import ConfiguredMacro from 'configured-lib.macro';"]},{"cmd":"yarn add babel-plugin-macros","imports":[]},{"cmd":"pnpm add babel-plugin-macros","imports":[]}],"homepage":null,"github":"https://github.com/kentcdodds/babel-plugin-macros","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-macros","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-macros/compatibility"}}