Record<string, unknown>
{}
Replaces variables in your code with other values or expressions at compile time. This is useful for enabling different behavior between development and production builds.
Each configuration key represents an identifier or multiple identifiers joined with .
.
typeof
are only defined for typeof calls.For more usage, see Using define and Rspack - DefinePlugin.
Expressions are replaced with the corresponding code fragments: