ResolveLoader
This configuration item is consistent in type with resolve, but this setting only affects the resolution of loaders.
- Type: Consistent with
resolve - Default:
Example
For example, if you are developing a loader and want to showcase its usage from a user's perspective in an example, you can write:
rspack.config.mjs
Then, in the example code, you can write:
Inline Loaders
The loader mentioned above uses the syntax of inline loaders. For details, please refer to here.

