Overview

Compatibility status

Rspack is committed to being compatible with the loaders within the webpack ecosystem. We ensure that Rspack is as compatible as possible with the webpack loader API, allowing more existing webpack loaders to be directly used in Rspack.

Currently, Rspack is compatible with most of webpack's loader APIs. If you find that a webpack loader cannot be used in Rspack, feel free to file an issue in the Rspack repository.

Examples

We provide some basic examples of different types of loaders. If you want to write a loader, you can refer to these examples to get started.

If you need to use an existing loader, you can refer to Features - Loader to learn how to use it.

Loader API

Loader API includes: