unplugin-parcel-macros
JSON →Unplugin plugin that brings Parcel's macro system to webpack, Vite, Rollup, esbuild, Next.js, and more. Macros are JavaScript/TypeScript functions that execute at build time, returning values that get inlined into the bundle, enabling compile-time computation, code generation, and asset creation without custom plugins. Version 0.2.0, actively maintained, requires Node >= 18 and an import attribute (with {type: 'macro'}). Compared to babel macros or webpack loader-based approaches, it leverages Unplugin for universal integration and follows the TC39 import attributes proposal.
Traffic · last 30 days stale · no recent hits
total hits 12
actors 5 distinct systems
last hit 18d ago Bingbot
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇬🇧 United Kingdom
Resources
API endpoints
full doc /v1/registry/unplugin-parcel-macros
compatibility /v1/registry/unplugin-parcel-macros/compatibility