Record<string, unknown>
{}
Replaces variables in your code with other values or expressions at compile time. This can be useful for allowing different behavior between development builds and production builds.
Each key passed into options is an identifier or multiple identifiers joined with .
.
For more usage, please refer to Using define and Rspack - DefinePlugin.
Expressions will be replaced with the corresponding code fragments: