website/docs/en/config/deprecated-options.mdx
import { ApiMeta, Stability } from '../../../components/ApiMeta';
This page lists configuration options that have been deprecated in Rspack.
These options are kept for backward compatibility only and should not be used in new projects.
booleanfalse:::warning Deprecated This option is deprecated since Rspack 2.0. Users now need to manually add CSS rules to enable CSS support. In a future version, Rspack will automatically add CSS-related default rules. :::
To use CSS in Rspack 2.0, you need to manually add CSS rules to your configuration:
export default {
module: {
rules: [
{
test: /\.css$/,
type: 'css/auto',
},
],
},
};
export default {
experiments: {
css: true,
},
};
This option has been moved to top-level incremental.
An array to pass the loader package name and its options.
:::warning This option has been deprecated. Use rules[].use instead. :::