use-macro

JSON →
library 1.1.0 ·javascript
verified May 1, 2026

ESBuild plugin (v1.1.0, active development) that executes TypeScript/JavaScript functions at compile time and replaces their calls with the computed result, enabling compile-time code generation and optimization. Differentiates from Babel macros by being esbuild-native and ESM-only, supporting async macros, and serializing complex types like Map, Set, Date, RegExp, and web API objects. Released on npm, with TypeScript type declarations included.

total hits 9
actors 2 distinct systems
last hit 5d ago AhrefsBot
GPTBot
5
Humans
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France