The content of this section is derived from the content of the following links and is subject to the CC BY 4.0 license.
The following contents can be assumed to be the result of modifications and deletions based on the original contents if not specifically stated.
These are the remaining configuration options supported by rspack.
boolean
false
Fail out on the first error instead of tolerating it. By default Rspack will log these errors in red in the terminal, as well as the browser console when using HMR, but continue bundling. To enable it:
This will force Rspack to exit its bundling process.
string[]
undefined
A list of name defining all sibling configurations it depends on. Dependent configurations need to be compiled first.
In watch mode dependencies will invalidate the compiler when:
Remember that current configuration will not compile until its dependencies are done.
(RegExp | ((warning: Error, Compilation: Compilation) => boolean))[]
undefined
Tells Rspack to ignore specific warnings.
string
undefined
Name of the configuration. Used when loading multiple configurations.
Record<string, any>
undefined
Expose custom values into the loader context.
For example, you can define a new variable in the loader context:
Then use this.answer
to get its value in the loader:
You can override properties in the loader context as webpack copies all properties that are defined in the loader to the loader context.
boolean
undefined
Capture a "profile" of the application, including statistics and hints, which can then be dissected using the Analyze tool. It will also log out a summary of module timings.