rollup-plugin-messageformat
JSON →Rollup plugin that lets you import JSON, YAML, and .properties files containing ICU MessageFormat messages, converting them into message functions compatible with @messageformat/react and @messageformat/runtime. Current stable version is 3.0.0, supporting Node >=14 and shipping TypeScript types. The plugin handles locale-aware file matching, key-path parsing for .properties, and tree-shaking by extracting only used messages. It requires @messageformat/runtime as a runtime peer dependency for generated code. Unlike manual message loading, it integrates directly into the Rollup build pipeline, enabling efficient code splitting and smaller bundles.
Traffic · last 30 days ↓50% vs prev 7d
total hits 11
actors 4 distinct systems
last hit 5d ago human
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇪🇸 Spain
Resources
homepagemessageformat.github.io/ ↗