Extends the runtime error-code catalog with the given code → message template entries.
Plugins and other packages call this function during their registration (typically from
their load*Plugin entry point) so their codes resolve through getErrorMessage
without growing the engine catalog.
In production builds the catalog is never read, so this becomes a no-op and bundlers
can drop the entire message table (constant-folded through process.env.NODE_ENV).
Extends the runtime error-code catalog with the given code → message template entries.
Plugins and other packages call this function during their registration (typically from their
load*Pluginentry point) so their codes resolve through getErrorMessage without growing the engine catalog.In production builds the catalog is never read, so this becomes a no-op and bundlers can drop the entire message table (constant-folded through
process.env.NODE_ENV).